|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.tamino.db.api.invocation.TAbstractInvocation
com.softwareag.tamino.db.api.invocation.http.THTTPInvocation
public class THTTPInvocation
THTTPInvocation is the default implementation for TInvocation that makes use of the HTTP protocol. The HTTP communication is realized by the use of the java.net package. This means when the API is used within an Applet with this class as the HTTP communication layer, it is stronly advised to use the Applet by the Javasoft Pluging to ensure that Suns JDK is used.
Field Summary |
---|
Fields inherited from class com.softwareag.tamino.db.api.invocation.TAbstractInvocation |
---|
PROP_RETRY |
Constructor Summary | |
---|---|
THTTPInvocation(TUri databaseUri)
Initializes the instance with Tamino's database uri. |
|
THTTPInvocation(TUri databaseUri,
SecurityToken token)
|
|
THTTPInvocation(TUri databaseUri,
java.lang.String userId,
java.lang.String password)
Initializes the instance with Tamino's database uri, and a users authorization parameters. |
|
THTTPInvocation(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. |
Method Summary | |
---|---|
protected void |
doClose()
Implements the plug in method doClose of TAbstractInvocation. |
TInputStream |
doInvoke(TCommandStatement commandStatement,
java.lang.String collection,
java.lang.String doctype,
java.lang.String docname,
boolean useTransactionMode)
Invokes a Tamino specific command given by a TCommandStatement on an underlying Tamino database. |
protected java.net.HttpURLConnection |
getHttpURLConnection(java.lang.String urlString)
Gets a HttpURLConnection for the specified url. |
int |
getSocketTimeout()
|
protected void |
setAuthentication(java.net.HttpURLConnection connection)
Setting authentication to the http(s) connection. |
void |
setLocale(java.util.Locale locale)
Sets the locale. |
void |
setSocketTimeout(int timeout)
This value indicates to use Tamino default values for the timeout parameters. |
Methods inherited from class com.softwareag.tamino.db.api.invocation.TAbstractInvocation |
---|
addRetryHandler, checkServerAvailabilityAndVersion, close, getDatabaseUri, getDomain, getLastExecutedCommandStatement, getLastNonActivityTimeoutRelevantInvokeTimeMillis, getLocale, getPassword, getPooledConnectionReconnectHandler, getSecurityToken, getTransactionModeCoordinator, getUserId, invoke, invoke, invoke, isClosed, setPooledConnectionReconnectHandler, setTransactionModeCoordinator, supports, updateStreamHeader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public THTTPInvocation(TUri databaseUri, SecurityToken token)
public THTTPInvocation(TUri databaseUri, java.lang.String domain, java.lang.String userId, java.lang.String password) throws TInvocationException
databaseUri
- is the Tamino database.domain
- denotes the domain user for WWW authorization.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 THTTPInvocation(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 THTTPInvocation(TUri databaseUri) throws TInvocationException
databaseUri
- is the Tamino database.
TInvocationException
- is thrown if the Tamino database cannot be reached.Method Detail |
---|
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 Tamino specific action that should be fullfilled.collection
- is the collection of the Tamino DB to which the command statement might be related to.doctype
- within a schema of the given collection to which the command statement might be related to.objectName
- is the name of the object to which the command statement might be related to.useTransactionMode
- specifies whether the transaction mode shall be considered.
TInvocationException
- due to any problems that can occur when performing the
invocation on Tamino.protected void doClose()
doClose
in class TAbstractInvocation
protected java.net.HttpURLConnection getHttpURLConnection(java.lang.String urlString) throws TCommunicationException
TCommunicationException
protected void setAuthentication(java.net.HttpURLConnection connection) throws TInvocationException
connection
- the http(s) connection
TInvocationException
public void setLocale(java.util.Locale locale)
TAbstractInvocation
setLocale
in interface TInvocation
setLocale
in class TAbstractInvocation
public int getSocketTimeout()
public void setSocketTimeout(int timeout)
TInvocation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |