public class TWSLInvocation extends TAbstractInvocation
PROP_RETRY
Constructor and Description |
---|
TWSLInvocation(TUri databaseUri)
Initializes the instance with Tamino's database uri.
|
TWSLInvocation(TUri databaseUri,
SecurityToken token)
Initializes the instance with Tamino's database uri.
|
TWSLInvocation(TUri databaseUri,
java.lang.String userId,
java.lang.String password)
Initializes the instance with Tamino's database uri, and a users authorization
parameters.
|
TWSLInvocation(TUri databaseUri,
java.lang.String domain,
java.lang.String userId,
java.lang.String password)
Initializes the instance with Tamino's database uri, and a users authorization
parameters.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doClose()
Plug in method for closing the invocation connection.
|
TInputStream |
doInvoke(TCommandStatement commandStatement,
java.lang.String collection,
java.lang.String doctype,
java.lang.String docname,
boolean useTransactionMode)
Invokes a specific command given by a TCommandStatement on an underlying Tamino database.
|
int |
getSocketTimeout() |
void |
setSocketTimeout(int timeout)
This value indicates to use Tamino default values for the timeout parameters.
|
addRetryHandler, checkServerAvailabilityAndVersion, close, getDatabaseUri, getDomain, getLastExecutedCommandStatement, getLastNonActivityTimeoutRelevantInvokeTimeMillis, getLocale, getPassword, getPooledConnectionReconnectHandler, getSecurityToken, getTransactionModeCoordinator, getUserId, invoke, invoke, invoke, isClosed, setLocale, setPooledConnectionReconnectHandler, setTransactionModeCoordinator, supports, updateStreamHeader
public TWSLInvocation(TUri databaseUri, java.lang.String domain, java.lang.String userId, java.lang.String password) throws TInvocationException
databaseUri
- is the Tamino database name.domain
- denotes the domain user for WWW authorization.userId
- is the user ID.password
- is the password.TInvocationException
- is thrown if the Tamino database cannot be reached.public TWSLInvocation(TUri databaseUri, java.lang.String userId, java.lang.String password) throws TInvocationException
databaseUri
- is the Tamino database.userId
- denotes the user for WWW authorization.password
- denotes the password that is related to the given userId.TInvocationException
- is thrown if the Tamino database cannot be reached.public TWSLInvocation(TUri databaseUri) throws TInvocationException
databaseUri
- is the Tamino database name.TInvocationException
- due to any problems that can occur when performing the
invocation on Tamino.public TWSLInvocation(TUri databaseUri, SecurityToken token) throws TInvocationException
databaseUri
- is the Tamino database name.TInvocationException
- due to any problems that can occur when performing the
invocation on Tamino.protected void doClose() throws TInvocationException
doClose
in class TAbstractInvocation
TInvocationException
- due to any problems that can occur when performing the
invocation on Tamino.public TInputStream doInvoke(TCommandStatement commandStatement, java.lang.String collection, java.lang.String doctype, java.lang.String docname, boolean useTransactionMode) throws TInvocationException
doInvoke
in interface TRetryInvocation
doInvoke
in class TAbstractInvocation
commandStatement
- spcifies the concrete action that should be fullfilled.collection
- is the collection of the Tamino DB where the object is contained in.doctype
- within a schema of a collection to which the statement is related.docname
- denotes the docname under which a specific document might be accessible.useTransactionMode
- specifies whether the transaction mode shall be considered.TInvocationException
- due to any problems that can occur when performing the
invocation on Tamino.public int getSocketTimeout()
public void setSocketTimeout(int timeout)
TInvocation
Copyright (c) 2017 Software AG. All Rights Reserved.