com.softwareag.tamino.db.api.invocation.http
Class THTTPSInvocation

java.lang.Object
  extended by com.softwareag.tamino.db.api.invocation.TAbstractInvocation
      extended by com.softwareag.tamino.db.api.invocation.http.THTTPInvocation
          extended by com.softwareag.tamino.db.api.invocation.http.THTTPSInvocation
All Implemented Interfaces:
TInvocation, TRetryInvocation

public class THTTPSInvocation
extends THTTPInvocation

Subclass of the standard http invocation. Handles https with given SSL properties to accomplish a 1-way or a 2-way SSL protocol.

Author:
asc

Field Summary
 
Fields inherited from class com.softwareag.tamino.db.api.invocation.TAbstractInvocation
PROP_RETRY
 
Constructor Summary
THTTPSInvocation(TUri databaseUri, SecurityToken securityToken, TSSLProperties sslProperties)
          Initializes the https invocation with ssl properties.
THTTPSInvocation(TUri databaseUri, java.lang.String userId, java.lang.String password)
          Initializes the https invocation without ssl properties.
THTTPSInvocation(TUri databaseUri, java.lang.String domain, java.lang.String userId, java.lang.String password, TSSLProperties sslProperties)
          Initializes the https invocation with ssl properties.
THTTPSInvocation(TUri databaseUri, java.lang.String userId, java.lang.String password, TSSLProperties sslProperties)
          Initializes the https invocation with ssl properties.
 
Method Summary
protected  java.net.HttpURLConnection getHttpURLConnection(java.lang.String urlString)
          Gets a HttpURLConnection for the specified url.
protected  void setAuthentication(java.net.HttpURLConnection connection)
          Setting authentication to the http(s) connection.
 void setSSLProperties(TSSLProperties sslProperties)
          Set ssl properties (custom or system properties)
 
Methods inherited from class com.softwareag.tamino.db.api.invocation.http.THTTPInvocation
doClose, doInvoke, getSocketTimeout, setLocale, setSocketTimeout
 
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

THTTPSInvocation

public THTTPSInvocation(TUri databaseUri,
                        java.lang.String domain,
                        java.lang.String userId,
                        java.lang.String password,
                        TSSLProperties sslProperties)
                 throws TInvocationException
Initializes the https invocation with ssl properties.

Parameters:
databaseUri - the database url
userId - denotes the user for authentication
password - denotes the password for authentication
sslProperties - the ssl properties (custom or system properties)
Throws:
TInvocationException

THTTPSInvocation

public THTTPSInvocation(TUri databaseUri,
                        java.lang.String userId,
                        java.lang.String password,
                        TSSLProperties sslProperties)
                 throws TInvocationException
Initializes the https invocation with ssl properties.

Parameters:
databaseUri - the database url
userId - denotes the user for authentication
password - denotes the password for authentication
sslProperties - the ssl properties (custom or system properties)
Throws:
TInvocationException

THTTPSInvocation

public THTTPSInvocation(TUri databaseUri,
                        SecurityToken securityToken,
                        TSSLProperties sslProperties)
                 throws TInvocationException
Initializes the https invocation with ssl properties.

Parameters:
databaseUri - the database url
securityToken - security for authentication
sslProperties - the ssl properties (custom or system properties)
Throws:
TInvocationException

THTTPSInvocation

public THTTPSInvocation(TUri databaseUri,
                        java.lang.String userId,
                        java.lang.String password)
                 throws TInvocationException
Initializes the https invocation without ssl properties. Properties expected to set later.

Parameters:
databaseUri - the database url
userId - denotes the user for authentication
password - denotes the password for authentication
Throws:
TInvocationException
Method Detail

setSSLProperties

public void setSSLProperties(TSSLProperties sslProperties)
Set ssl properties (custom or system properties)

Parameters:
sslProperties - the properties

getHttpURLConnection

protected java.net.HttpURLConnection getHttpURLConnection(java.lang.String urlString)
                                                   throws TCommunicationException
Description copied from class: THTTPInvocation
Gets a HttpURLConnection for the specified url.

Overrides:
getHttpURLConnection in class THTTPInvocation
Throws:
TCommunicationException

setAuthentication

protected void setAuthentication(java.net.HttpURLConnection connection)
                          throws TInvocationException
Description copied from class: THTTPInvocation
Setting authentication to the http(s) connection. Subclass may overwrite ...

Overrides:
setAuthentication in class THTTPInvocation
Parameters:
connection - the http(s) connection
Throws:
TInvocationException


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