com.softwareag.tamino.db.api.invocation
Class TInvocationFactory

java.lang.Object
  extended by com.softwareag.tamino.db.api.invocation.TInvocationFactory

public class TInvocationFactory
extends java.lang.Object

TInvocationFactory is the factory class for the instantiation of TInvocation instances. It is responsible for configuration and instantiation of TInvocation instances. This class implements the singleton pattern.

Version:
$Revision: 1.17 $
Author:
Stefan Liebig

Constructor Summary
protected TInvocationFactory()
          Default Constructor.
 
Method Summary
static TInvocationFactory getInstance()
          Gets the singleton instance for this class.
 TInvocation newInvocation(TUri databaseUri)
          Creates a TInvocation instance with the default settings.
 TInvocation newInvocation(TUri databaseUri, SecurityToken token)
          Creates a TInvocation instance with the default settings.
 TInvocation newInvocation(TUri databaseUri, SecurityToken token, TSSLProperties sslProperties)
          Creates a TInvocation instance with the ssl properties.
 TInvocation newInvocation(TUri databaseUri, java.lang.String userId, java.lang.String password)
          Creates a TInvocation instance for the given database with the specified authentication parameters userId and password.
 TInvocation newInvocation(TUri databaseUri, java.lang.String domain, java.lang.String userId, java.lang.String password)
          Creates a TInvocation instance for the given database with the specified authentication parameters userId and password.
 TInvocation newInvocation(TUri databaseUri, java.lang.String domain, java.lang.String userId, java.lang.String password, TSSLProperties sslProperties)
          Creates a TInvocation (https) instance for the given database with the specified authentication parameters userId and password together with the SSL parameters.
 TInvocation newInvocation(TUri databaseUri, java.lang.String userId, java.lang.String password, TSSLProperties sslProperties)
          Creates a TInvocation (https) instance for the given database with the specified authentication parameters userId and password together with the SSL parameters.
 void setLocale(java.util.Locale locale)
          Sets the locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TInvocationFactory

protected TInvocationFactory()
Default Constructor.

Method Detail

newInvocation

public TInvocation newInvocation(TUri databaseUri,
                                 SecurityToken token)
                          throws TInvocationException
Creates a TInvocation instance with the default settings.

Parameters:
database - is the concrete Tamino database uri.
Throws:
TInvocationException

newInvocation

public TInvocation newInvocation(TUri databaseUri,
                                 SecurityToken token,
                                 TSSLProperties sslProperties)
                          throws TInvocationException
Creates a TInvocation instance with the ssl properties.

Parameters:
database - is the concrete Tamino database uri.
Throws:
TInvocationException

newInvocation

public TInvocation newInvocation(TUri databaseUri)
                          throws TInvocationException
Creates a TInvocation instance with the default settings.

Parameters:
database - is the concrete Tamino database uri.
Throws:
TInvocationException

newInvocation

public TInvocation newInvocation(TUri databaseUri,
                                 java.lang.String userId,
                                 java.lang.String password)
                          throws TInvocationException
Creates a TInvocation instance for the given database with the specified authentication parameters userId and password.

Parameters:
database - is the concrete Tamino database uri.
userId - for the user authentication.
password - for the user authentication.
Throws:
TInvocationException

newInvocation

public TInvocation newInvocation(TUri databaseUri,
                                 java.lang.String userId,
                                 java.lang.String password,
                                 TSSLProperties sslProperties)
                          throws TInvocationException
Creates a TInvocation (https) instance for the given database with the specified authentication parameters userId and password together with the SSL parameters.

Parameters:
databaseUri - the concrete database uri.
userId - for the user authentication.
password - for the user authentication.
sslProperties - ssl properties for the https handshake
Returns:
the https TInvocation
Throws:
TInvocationException

newInvocation

public TInvocation newInvocation(TUri databaseUri,
                                 java.lang.String domain,
                                 java.lang.String userId,
                                 java.lang.String password)
                          throws TInvocationException
Creates a TInvocation instance for the given database with the specified authentication parameters userId and password.

Parameters:
database - is the concrete Tamino database uri.
domain - to be used for the user authentication
userId - for the user authentication.
password - for the user authentication.
Throws:
TInvocationException

newInvocation

public TInvocation newInvocation(TUri databaseUri,
                                 java.lang.String domain,
                                 java.lang.String userId,
                                 java.lang.String password,
                                 TSSLProperties sslProperties)
                          throws TInvocationException
Creates a TInvocation (https) instance for the given database with the specified authentication parameters userId and password together with the SSL parameters.

Parameters:
databaseUri - the concrete database uri.
domain - to be used for the user authentication
userId - for the user authentication.
password - for the user authentication.
sslProperties - ssl properties for the https handshake
Returns:
the https TInvocation
Throws:
TInvocationException

getInstance

public static TInvocationFactory getInstance()
Gets the singleton instance for this class.


setLocale

public void setLocale(java.util.Locale locale)
Sets the locale.



Copyright (c) 2013 Software AG. All Rights Reserved.