public class TConnectionFactory
extends java.lang.Object
With Tamino 4.2 it is also possible to retrieve the list of available databases for a
given Tamino server.
Please note that this may require web server athentication.
Modifier | Constructor and Description |
---|---|
protected |
TConnectionFactory()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<TDatabase> |
getDatabases(java.lang.String taminoHostUri)
Retrieve the list of all available Tamino database URIs from the specified Tamino without authentication.
|
java.util.Set<TDatabase> |
getDatabases(java.lang.String taminoHostUri,
java.lang.String userId,
java.lang.String password)
Retrieve the list of all available Tamino database URIs from the specified Tamino with the
authentication parameters userId and password.
|
java.util.Set<TDatabase> |
getDatabases(java.lang.String taminoHostUri,
java.lang.String domain,
java.lang.String userId,
java.lang.String password)
Retrieve the list of all available Tamino database URIs from the specified Tamino with the
authentication parameters domain, userId and password.
|
static TConnectionFactory |
getInstance()
Gets the singleton TConnectionFactory instance.
|
TConnection |
newConnection(java.lang.String databaseUri)
Creates a TConnection instance for the given database without authentication parameters.
|
TConnection |
newConnection(java.lang.String databaseUri,
java.util.Locale locale)
Creates a TConnection instance for the given database without authentication parameters and specified locale.
|
TConnection |
newConnection(java.lang.String databaseUri,
SecurityToken token) |
TConnection |
newConnection(java.lang.String databaseUri,
SecurityToken token,
java.util.Locale locale)
Create a TConnection instance with the give database URI, security token, and the
specified locale
|
TConnection |
newConnection(java.lang.String databaseUri,
SecurityToken token,
java.util.Locale locale,
java.util.Properties sslProperties)
Create a TConnection instance with the give database URI, security token, and SSL properties for https.
This method is designed for internal use only! |
TConnection |
newConnection(java.lang.String databaseUri,
java.lang.String userId,
java.lang.String password)
Creates a TConnection instance for the given database with the specified
authentication parameters userId and password.
|
TConnection |
newConnection(java.lang.String databaseUri,
java.lang.String userId,
java.lang.String password,
java.util.Locale locale)
Creates a TConnection instance for the given database with the specified
authentication parameters userId and password and specified locale.
|
TConnection |
newConnection(java.lang.String databaseUri,
java.lang.String userId,
java.lang.String password,
java.util.Locale locale,
java.util.Properties sslProperties)
Creates a https TConnection instance for the given database with the specified
authentication parameters userId, password and ssl properties.
This method is designed for internal use only! |
TConnection |
newConnection(java.lang.String databaseUri,
java.lang.String userId,
java.lang.String password,
java.util.Properties sslProperties)
Creates a https TConnection instance for the given database with the specified
authentication parameters userId, password and ssl properties.
This method is designed for internal use only! |
TConnection |
newConnection(java.lang.String databaseUri,
java.lang.String domain,
java.lang.String userId,
java.lang.String password)
Creates a TConnection instance for the given database with the specified
authentication parameters domain, userId and password.
|
TConnection |
newConnection(java.lang.String databaseUri,
java.lang.String domain,
java.lang.String userId,
java.lang.String password,
java.util.Locale locale)
Creates a TConnection instance for the given database with the specified
authentication parameters domain, userId and password and specified locale.
|
TConnection |
newConnection(java.lang.String databaseUri,
java.lang.String domain,
java.lang.String userId,
java.lang.String password,
java.util.Properties sslProperties)
Creates a TConnection instance for the given database with the specified
authentication parameters domain, userId and password.
|
TConnection |
newConnection(TDatabase database)
Creates a TConnection instance for the given database without authentication parameters.
|
TConnection |
newConnection(TDatabase database,
java.util.Locale locale)
Creates a TConnection instance for the given database without authentication parameters and specified locale.
|
TConnection |
newConnection(TDatabase database,
SecurityToken token)
Creates a TConnection instance with the give Database and security Token
|
TConnection |
newConnection(TDatabase database,
SecurityToken token,
java.util.Locale locale)
Create the TConnection instance with the given database, security token and the
specified locale.
|
TConnection |
newConnection(TDatabase database,
java.lang.String userId,
java.lang.String password)
Creates a TConnection instance for the given database with the specified
authentication parameters userId and password.
|
TConnection |
newConnection(TDatabase database,
java.lang.String userId,
java.lang.String password,
java.util.Locale locale)
Creates a TConnection instance for the given database with the specified
authentication parameters userId and password and specified locale.
|
TConnection |
newConnection(TDatabase database,
java.lang.String domain,
java.lang.String userId,
java.lang.String password)
Creates a TConnection instance for the given database with the specified
authentication parameters domain, userId and password.
|
TConnection |
newConnection(TDatabase database,
java.lang.String domain,
java.lang.String userId,
java.lang.String password,
java.util.Locale locale)
Creates a TConnection instance for the given database with the specified
authentication parameters domain, userId and password and specified locale.
|
TConnection |
newConnection(TDatabase database,
java.lang.String domain,
java.lang.String userId,
java.lang.String password,
java.util.Properties sslProperties)
Creates a TConnection instance for the given database with the specified
authentication parameters domain, userId and password.
|
public static TConnectionFactory getInstance()
public TConnection newConnection(java.lang.String databaseUri) throws TServerNotAvailableException
databaseURI
- the URI of the Tamino database.TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(java.lang.String databaseUri, java.lang.String userId, java.lang.String password) throws TServerNotAvailableException
databaseUri
- the uri of the Tamino database.userId
- the user id to be used for authentication.password
- the password to be used for authentication.TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(java.lang.String databaseUri, java.lang.String userId, java.lang.String password, java.util.Properties sslProperties) throws TServerNotAvailableException
databaseUri
- the uri of the Tamino database.userId
- the user id to be used for authentication.password
- the password to be used for authentication.sslProperties
- properties class with custom ssl properties (internal use)TServerNotAvailableException
public TConnection newConnection(java.lang.String databaseUri, java.lang.String userId, java.lang.String password, java.util.Locale locale, java.util.Properties sslProperties) throws TServerNotAvailableException
databaseUri
- the uri of the Tamino database.userId
- the user id to be used for authentication.password
- the password to be used for authentication.locale
- given localesslProperties
- properties class with custom ssl properties (internal use)TServerNotAvailableException
public TConnection newConnection(java.lang.String databaseUri, java.lang.String domain, java.lang.String userId, java.lang.String password) throws TServerNotAvailableException
databaseUri
- the uri of the Tamino database.domain
- the domain to be used for authenticationuserId
- the user id to be used for authentication.password
- the password to be used for authentication.TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(java.lang.String databaseUri, java.lang.String domain, java.lang.String userId, java.lang.String password, java.util.Properties sslProperties) throws TServerNotAvailableException
databaseUri
- the uri of the Tamino database.domain
- the domain to be used for authenticationuserId
- the user id to be used for authentication.password
- the password to be used for authentication.sslProperties
- properties class with custom ssl properties (internal use)TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(TDatabase database) throws TServerNotAvailableException
database
- the Tamino database.TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(TDatabase database, java.lang.String userId, java.lang.String password) throws TServerNotAvailableException
database
- the Tamino database.userId
- the user id to be used for authentication.password
- the password to be used for authentication.TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(TDatabase database, java.lang.String domain, java.lang.String userId, java.lang.String password) throws TServerNotAvailableException
database
- the Tamino database.domain
- the domain to be used for authenticationuserId
- the user id to be used for authentication.password
- the password to be used for authentication.TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(TDatabase database, java.lang.String domain, java.lang.String userId, java.lang.String password, java.util.Properties sslProperties) throws TServerNotAvailableException
database
- the Tamino database.domain
- the domain to be used for authenticationuserId
- the user id to be used for authentication.password
- the password to be used for authentication.TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(java.lang.String databaseUri, java.util.Locale locale) throws TServerNotAvailableException
databaseURI
- the URI of the Tamino database.locale
- the localeTServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(java.lang.String databaseUri, java.lang.String userId, java.lang.String password, java.util.Locale locale) throws TServerNotAvailableException
databaseUri
- the uri of the Tamino database.userId
- the user id to be used for authentication.password
- the password to be used for authentication.locale
- the localeTServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(java.lang.String databaseUri, java.lang.String domain, java.lang.String userId, java.lang.String password, java.util.Locale locale) throws TServerNotAvailableException
databaseUri
- the uri of the Tamino database.domain
- the domain to be used for authenticationuserId
- the user id to be used for authentication.password
- the password to be used for authentication.locale
- the locale.TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(TDatabase database, java.util.Locale locale) throws TServerNotAvailableException
database
- the Tamino database.locale
- the locale.TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(TDatabase database, java.lang.String userId, java.lang.String password, java.util.Locale locale) throws TServerNotAvailableException
database
- the Tamino database.userId
- the user id to be used for authentication.password
- the password to be used for authentication.locale
- the locale.TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(TDatabase database, java.lang.String domain, java.lang.String userId, java.lang.String password, java.util.Locale locale) throws TServerNotAvailableException
database
- the Tamino database.domain
- the domain to be used for authenticationuserId
- the user id to be used for authentication.password
- the password to be used for authentication.locale
- the locale.TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(java.lang.String databaseUri, SecurityToken token) throws TServerNotAvailableException
TServerNotAvailableException
public TConnection newConnection(TDatabase database, SecurityToken token) throws TServerNotAvailableException
database
- the database objecttoken
- the security token objectTServerNotAvailableException
public TConnection newConnection(java.lang.String databaseUri, SecurityToken token, java.util.Locale locale) throws TServerNotAvailableException
databaseUri
- the database URItoken
- the security token objectlocale
- the locale.TServerNotAvailableException
public TConnection newConnection(java.lang.String databaseUri, SecurityToken token, java.util.Locale locale, java.util.Properties sslProperties) throws TServerNotAvailableException
databaseUri
- the database URItoken
- the security token objectlocale
- the locale.sslProperties
- the ssl properties (internal use)TServerNotAvailableException
public TConnection newConnection(TDatabase database, SecurityToken token, java.util.Locale locale) throws TServerNotAvailableException
database
- the TDatabase objecttoken
- the security token objectlocale
- the locale.TServerNotAvailableException
public java.util.Set<TDatabase> getDatabases(java.lang.String taminoHostUri) throws TServerNotAvailableException
This feature requires Tamino 4.2
taminoHostUri
- the uri of the Tamino host, e.g. "http://myserver/tamino".TServerNotAvailableException
- signals problems retrieving the list.public java.util.Set<TDatabase> getDatabases(java.lang.String taminoHostUri, java.lang.String userId, java.lang.String password) throws TServerNotAvailableException
This feature requires Tamino 4.2
taminoHostUri
- the uri of the Tamino host, e.g. "http://myserver/tamino".userId
- the user id to be used for authentication.password
- the password to be used for authentication.TServerNotAvailableException
- signals problems retrieving the list.public java.util.Set<TDatabase> getDatabases(java.lang.String taminoHostUri, java.lang.String domain, java.lang.String userId, java.lang.String password) throws TServerNotAvailableException
This feature requires Tamino 4.2
taminoHostUri
- the uri of the Tamino host, e.g. "http://myserver/tamino".domain
- the domain to be used for authenticationuserId
- the user id to be used for authentication.password
- the password to be used for authentication.TServerNotAvailableException
- signals problems retrieving the list.Copyright (c) 2017 Software AG. All Rights Reserved.