|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.BTTProcessorNotifier
com.ibm.btt.base.Service
com.ibm.btt.cs.servlet.CSClient
public class CSClient
The CSClient class provides the C/S service on the client side.
Field Summary | |
---|---|
protected CSNotificationListener |
aCSNotificationListener
Contains the listeners of the CSNotificationEvent events. |
protected CSReplyListener |
aCSReplyListener
Contains the listeners of the CSReplyEvent events. |
protected CSSessionStatusChangedListener |
aCSSessionStatusChangedListener
Contains the listeners of the CSSessionStatusChangedEvent events. |
protected java.lang.String |
charEncoding
Character encoding used in the HTTP message body sent in C/S requests. |
protected HttpURLConnectionThin |
csAssignConnection
Connection used to establish session with the server. |
protected java.lang.String |
csAssignServletName
Name of the servlet used to establish session with the server. |
protected HttpURLConnectionThin |
csNotifClToSrvConnection
Connection used to send events to the server. |
protected java.lang.String |
csNotifClToSrvServletName
Name of the servlet used to send events to the server. |
protected HttpURLConnectionThin |
csNotifSrvToClConnection
Connection used to receive events from the server. |
protected java.lang.String |
csNotifSrvToClServletName
Name of the servlet used to receive events from the server. |
protected HttpURLConnectionThin |
csReqProtocolConnection
Connection used to execute operation in the server side. |
protected java.lang.String |
csReqProtocolServletName
Name of the servlet used to connect to the server for executing operations. |
protected boolean |
enableSSL
SSL enabled or not |
protected Hashtable |
handlersList
|
protected boolean |
isCsNotifClToSrvConnectionFree
Specifies if the connection csNotifClToSrvConnection can be used. |
protected boolean |
isCsReqProtocolConnectionFree
Specifies if the connection csReqProtocolConnection can be used. |
protected boolean |
receiveReplyAfterSynchronousSendTimeout
Specifies if the Client/Server will trigger a CSReplyEvent when the reply is received after a synchronous send timeout. |
protected int |
ReconnectionAttemptsForSMNotification
Number of attempts to reestablish the session. |
protected boolean |
retryOnError
Specifies if the Client/Server must try to send a request when there has been communication problems. |
protected SSLEnabler |
sslEnabler
SSLEnabler |
protected Hashtable |
terminateThreads
List of threads that must be stopped when csclient terminates. |
protected long |
TimeBetweenReconnectionAttempts
Time between reconnection attempts when the session is down. |
protected Vector |
timeoutedSynchronousRequests
Identifiers for synchronous requests that have timeouted and the CSReplyEvent has not still been triggered. |
Fields inherited from class com.ibm.btt.base.Service |
---|
externalizer, name |
Fields inherited from interface com.ibm.btt.clientserver.CSClientService |
---|
CS_REPLY_EVENT, CS_REQUEST_ID, CS_SESSION_STATUS, CS_STATUS_CHANGED_EVENT, DOWN, ENABLESSL, NOT_ESTABLISHED, OK, RESET, SSLENABLER |
Constructor Summary | |
---|---|
CSClient()
This constructor creates a CSClient object. |
|
CSClient(java.lang.String aName)
This constructor creates a CSClient object. |
Method Summary | |
---|---|
void |
addCSConnectionCookies(java.lang.String clientCookieStr)
Adds a client cookie for the connection. |
void |
addCSConnectionCookies(java.util.Vector clientCookiesVector)
Adds client cookies for the connection. |
void |
addCSNotificationListener(CSNotificationListener newListener)
Adds the specified CSNotificationListener to recieve CSNotificationEvents from this class. |
void |
addCSReplyListener(CSReplyListener newListener)
Adds the specified CSReplyListener to recieve CSReplyEvents from this class. |
void |
addCSSessionStatusChangedListener(CSSessionStatusChangedListener newListener)
Adds the specified CSSessionStatusChangedListener to recieve CSSessionStatusChangedEvents from this class. |
void |
addHandler(Handler aHandler,
java.lang.String anEventName)
Adds an aHandler to the chain of handlers for the specific instance of DSENotifier. |
void |
closeSession()
Closes the session. |
void |
closeSessionAndDeleteCookies()
Method closeSessionAndDeleteCookies. |
void |
establishSession()
Establishes a session with the server. |
void |
establishSession(boolean newSession)
Establishes a session with the server. |
void |
finalize()
Called by the garbage collector. |
protected void |
fireAndSignalCSReplyEvent(CSReplyEvent anEvent,
java.lang.String eventName)
Method to support listener events. |
protected void |
fireAndSignalCSStatusChangedEvent(CSSessionStatusChangedEvent anEvent,
java.lang.String eventName)
Method to support listener events. |
protected void |
fireHandleCSNotificationEvent(CSNotificationEvent event)
Method to support listener events. |
protected void |
fireHandleCSReplyEvent(CSReplyEvent event)
Method to support listener events. |
protected void |
fireHandleCSSessionStatusChangedEvent(CSSessionStatusChangedEvent event)
Method to support listener events. |
protected boolean |
firstDown()
Returns true if the sesion is not down yet. |
protected void |
freeCsNotifClToSrvConnection(HttpURLConnectionThin aHttpURLConnectionThin)
Allows to use the CsNotifClToSrvConnection again. |
protected void |
freeCsReqProtocolConnection(HttpURLConnectionThin aHttpURLConnectionThin)
Allows to use the CsReqProtocolConnection again. |
java.lang.String |
getCharEncoding()
Obtains the charEncoding attribute. |
boolean |
getCreateSession()
Gets the fieldCreateSession property (boolean) value. |
protected HttpURLConnectionThin |
getCsAssignConnection()
Returns a connection used to establish a session with the server. |
java.lang.String |
getCsAssignServletName()
Gets the csAssignServletName value. |
static CSClientService |
getCSClient(java.lang.String id)
To get a CSClientService from specified id. |
protected HttpURLConnectionThin |
getCsNotifClToSrvConnection()
Returns a connection used to send events to the server. |
java.lang.String |
getCsNotifClToSrvServletName()
Gets the csNotifClToSrvServletName value. |
protected HttpURLConnectionThin |
getCsNotifSrvToClConnection()
Returns a connection used to receive events from the server. |
java.lang.String |
getCsNotifSrvToClServletName()
Gets the csNotifSrvToClServletName value. |
protected HttpURLConnectionThin |
getCsReqProtocolConnection()
Returns a connection used to execute operation in the server side. |
java.lang.String |
getCsReqProtocolServletName()
Gets the csReqProtocolServletName value. |
long |
getDefaultOperationTimeout()
Returns the timeout used in the methods: sendAndWait(ClientOperation), receive(ClientOperation, Integer), receive (Context, Integer) |
int |
getEventsPort()
Obtains the events port. |
protected static java.lang.Integer |
getIdRequest()
Gets the _idRequestCounter property (Integer) value. |
boolean |
getKeepAliveConnection()
Gets the keepAliveConnection property (boolean) value. |
protected HttpURLConnectionThin |
getNewCsNotifClToSrvConnection()
Returns a connection used to send events to the server. |
protected HttpURLConnectionThin |
getNewCsReqProtocolConnection()
Returns a connection used to execute operation in the server side. |
boolean |
getPermanentConnectionForEvents()
Obtains the permanentConnectionForEvents attribute. |
java.lang.String |
getProxyCredentials()
Gets the proxyCredentials property (java.lang.String) value. |
java.lang.String |
getProxyHost()
Gets the proxyHost property (java.lang.String) value. |
int |
getProxyPort()
Gets the proxyPort property (int) value. |
boolean |
getReceiveReplyAfterSynchronousSendTimeout()
Obtains the receiveReplyAfterSynchronousSendTimeout attribute. |
int |
getReconnectionAttempts()
Gets the ReconnectionAttemptsForSMNotification property (int) value. |
boolean |
getRunInSession()
Returns the field runInSession, wich indicates whether the application must run under session management or not. |
protected SendEventsBuffer |
getSendEventsBuffer()
Gets the _sendEventsBuffer property (com.ibm.btt.clientserver.SendEventsBuffer) value. |
java.lang.String |
getServerCredentials()
Gets the serverCredentials property (java.lang.String) value. |
protected java.lang.Long |
getServerId()
Gets the serverId property (java.lang.Long) value. |
java.lang.String |
getServerName()
Gets the _serverName property (java.lang.String) value. |
java.net.ServerSocket |
getServerSocket()
Obtains the socket. |
java.lang.String |
getServerTID()
Gets the _serverTID property (java.lang.String) value. |
protected java.lang.String |
getServiceId()
Gets the _serviceId property (java.lang.String) value. |
java.lang.String |
getSessionId()
Gets the _serviceId property (java.lang.String) value. |
int |
getSessionStatus()
Gets the _sessionStatus property (int) value. |
SSLEnabler |
getSSLEnabler()
Returns the sslEnabler. |
long |
getTimeBetweenReconnectionAttempts()
Gets the TimeBetweenReconnectionAttempts property (long) value. |
protected long |
getTimeout()
Gets the timeout property (long) value. |
Vector |
getTimeoutedSynchronousRequests()
Gets timeoutedSynchronousRequests value |
boolean |
getUsedForSrvToClEventsNotif()
Gets the _usedForSrvToClEventNotif property (boolean) value. |
boolean |
getUseProxy()
Gets the useProxy property (boolean) value. |
java.lang.String |
getUserAgent()
Gets the fieldUserAgent property (java.lang.String) value. |
void |
handleCSAsynchronousReplyEvent(CSAsynchronousReplyEvent event)
Contains the appropriate actions to be executed when CSAsynchronousReplyEvent has been triggered. |
java.lang.Object |
initializeFrom(Tag aTag)
Sets all attributes that are defined in btt.xml file. |
protected void |
initializeServerSocket()
Creates a socket |
boolean |
isEnableSSL()
Returns the enableSSL. |
boolean |
isRetryOnError()
Gets the retryOnError property (boolean) value. |
protected void |
manageCaseConnectionDown(java.lang.String who)
Tries to establish the session with the server when the sesion goes down. |
void |
receive(ClientOperation aClientOperation,
java.lang.Integer requestId)
Used together with the asynchronous send(...) method. |
void |
receive(ClientOperation aClientOperation,
java.lang.Integer requestId,
long timeout)
Used together with the asynchronous send(...) method. |
void |
receive(Context aContext,
java.lang.Integer requestId)
Used together with the asynchronous send(...) method. |
void |
receive(Context aContext,
java.lang.Integer requestId,
long timeout)
Used together with the asynchronous send(...) method. |
void |
removeCSNotificationListener(CSNotificationListener newListener)
Removes the specified CSNotificationListener so that it no longer receives CSNotificationEvents from this class. |
void |
removeCSReplyListener(CSReplyListener newListener)
Removes the specified CSReplyListener so that it no longer receives CSReplyEvents from this class. |
void |
removeCSSessionStatusChangedListener(CSSessionStatusChangedListener newListener)
Removes the specified CSSessionStatusChangedListener so that it no longer receives CSSessionStatusChangedEvents from this class. |
java.lang.Integer |
send(ClientOperation aClientOperation)
Instantiates the remote execution of the operation on the server side. |
void |
sendAndWait(ClientOperation aClientOperation)
Initiates the remote execution of the operation on the server side and waits. |
void |
sendAndWait(ClientOperation aClientOperation,
long timeout)
Initiates the remote execution of the operation on the server side and waits for a timeout. |
void |
sendEvent(java.util.EventObject myEvent)
Sends an event to the server. |
void |
setCharEncoding(java.lang.String c)
Sets the charEncoding attribute. |
void |
setCreateSession(boolean value)
Sets the fieldCreateSession property (boolean) value. |
protected void |
setCsAssignConnection(HttpURLConnectionThin aCsAssignConnection)
Sets the csAssignConnection property (com.ibm.btt.clientserver.servlet.HttpURLConnectionThin) value. |
void |
setCsAssignServletName(java.lang.String newCsAssignServletName)
Sets the csAssignServletName value. |
protected void |
setCsNotifClToSrvConnection(HttpURLConnectionThin aCsNotifClToSrvConnection)
Sets the csNotifClToSrvConnection property (com.ibm.btt.clientserver.servlet.HttpURLConnectionThin) value. |
void |
setCsNotifClToSrvServletName(java.lang.String newCsNotifClToSrvServletName)
Sets the csNotifClToSrvServletName value. |
protected void |
setCsNotifSrvToClConnection(HttpURLConnectionThin aCsNotifSrvToClConnection)
Sets the csNotifSrvToClConnection property (com.ibm.btt.clientserver.servlet.HttpURLConnectionThin) value. |
void |
setCsNotifSrvToClServletName(java.lang.String newCsNotifSrvToClServletName)
Sets the csNotifSrvToClServletName value. |
protected void |
setCsReqProtocolConnection(HttpURLConnectionThin aCsReqProtocolConnection)
Sets the csReqProtocolConnection property (com.ibm.btt.clientserver.servlet.HttpURLConnectionThin) value. |
void |
setCsReqProtocolServletName(java.lang.String newCsReqProtocolServletName)
Sets the csReqProtocolServletName value. |
void |
setDefaultOperationTimeout(long aTimeout)
Sets the defaultOperationTimeout property (long) value. |
void |
setEnableSSL(boolean enableSSL)
Sets the enableSSL. |
void |
setEventsPort(int aPort)
Sets the events port. |
void |
setKeepAliveConnection(boolean value)
Sets the keepAliveConnection property (boolean) value. |
void |
setPermanentConnectionForEvents(boolean permConnection)
Sets the permanentConnectionForEvents attribute. |
void |
setProxyCredentials(java.lang.String aProxyCredentials)
Sets the proxyCredentials property (String) value. |
void |
setProxyHost(java.lang.String value)
Sets the proxyHost property (String) value. |
void |
setProxyPort(int value)
Sets the proxyPort property (int) value. |
void |
setReceiveReplyAfterSynchronousSendTimeout(boolean receiveReply)
Sets the receiveReplyAfterSynchronousSendTimeout attribute. |
void |
setReconnectionAttempts(int value)
Sets the ReconnectionAttemptsForSMNotification property (int) value. |
void |
setRetryOnError(boolean newRetryOnError)
Sets the retryOnError property (boolean) value. |
void |
setRunInSession(boolean newRunInSession)
Sets the runInSession property (boolean) value. |
void |
setServerCredentials(java.lang.String aServerCredentials)
Sets the serverCredentials property (String) value. |
protected void |
setServerId(java.lang.Long aServerId)
Sets the serverId property (Long) value. |
void |
setServerName(java.lang.String serverName)
Sets the _serverName property (java.lang.String) value. |
void |
setServerSocket(java.net.ServerSocket aSocket)
Sets the value of the server socket attribute. |
void |
setSSLEnabler(SSLEnabler sslEnabler)
Sets the sslEnabler. |
void |
setTimeBetweenReconnectionAttempts(long value)
Sets the TimeBetweenReconnectionAttempts property (long) value. |
protected void |
setTimeout(long aTimeout)
Sets the timeout property (long) value. |
void |
setUsedForSrvToClEventNotif(boolean used)
Sets the _usedForSrvToClEventNotif property (boolean) value. |
void |
setUseProxy(boolean value)
Sets the useProxy property (boolean) value. |
void |
setUserAgent(java.lang.String userAgent)
Sets the fieldUserAgent property (java.lang.String) value. |
void |
signalEvent(DSEEventObject anEvent)
The operation must call the dispatch method of the first handler registered for this event, proceed according to the defined event propagation criteria, and follow the chain of handlers. |
void |
signalEvent(java.lang.String anEventName)
The operation must call the dispatch method of the first handler registered for this event, proceed according to the defined event propagation criteria, and follow the chain of handlers. |
void |
signalEvent(java.lang.String anEventName,
java.util.Hashtable aParametersTable)
This class doesn't implement this method, Don't use this |
void |
startListen()
Creates a server socket and starts CSNotifInDynamicModeProtocolThread |
void |
terminate()
This is called either from the application or from the context when it is destroyed or unchained. |
java.lang.String |
toString()
Returns an SGML representation. |
Methods inherited from class com.ibm.btt.base.Service |
---|
externalizer, getExternalizer, getTagName, readExternal, readExternal, readObject, removeExternal, setExternalizer, toStrings, toTags, writeExternal, writeExternal |
Methods inherited from class com.ibm.btt.base.BTTProcessorNotifier |
---|
addHandler, getHandlersList, getName, removeHandler, setName, signalEvent, signalEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.btt.event.Notifier |
---|
getName, setName |
Methods inherited from interface com.ibm.btt.base.Externalizable |
---|
getName, setName |
Field Detail |
---|
protected Hashtable handlersList
protected long TimeBetweenReconnectionAttempts
protected int ReconnectionAttemptsForSMNotification
protected boolean enableSSL
protected SSLEnabler sslEnabler
protected transient CSNotificationListener aCSNotificationListener
protected transient CSReplyListener aCSReplyListener
protected transient CSSessionStatusChangedListener aCSSessionStatusChangedListener
protected HttpURLConnectionThin csReqProtocolConnection
protected java.lang.String csReqProtocolServletName
protected HttpURLConnectionThin csAssignConnection
protected java.lang.String csAssignServletName
protected HttpURLConnectionThin csNotifClToSrvConnection
protected java.lang.String csNotifClToSrvServletName
protected HttpURLConnectionThin csNotifSrvToClConnection
protected java.lang.String csNotifSrvToClServletName
protected Hashtable terminateThreads
protected boolean isCsReqProtocolConnectionFree
protected boolean isCsNotifClToSrvConnectionFree
protected boolean retryOnError
protected Vector timeoutedSynchronousRequests
protected boolean receiveReplyAfterSynchronousSendTimeout
protected java.lang.String charEncoding
Constructor Detail |
---|
public CSClient()
public CSClient(java.lang.String aName)
aName
- java.lang.StringMethod Detail |
---|
public static CSClientService getCSClient(java.lang.String id)
id
- The Service Id
public void addCSConnectionCookies(java.util.Vector clientCookiesVector)
addCSConnectionCookies
in interface CSClientService
clientCookiesVector
- java.util.Vectorpublic void addCSConnectionCookies(java.lang.String clientCookieStr)
addCSConnectionCookies
in interface CSClientService
clientCookieStr
- java.lang.Stringpublic void addCSNotificationListener(CSNotificationListener newListener)
addCSNotificationListener
in interface CSClientService
newListener
- com.ibm.btt.clientserver.CSNotificationListenerpublic void addCSReplyListener(CSReplyListener newListener)
addCSReplyListener
in interface CSClientService
newListener
- com.ibm.btt.clientserver.CSReplyListenerpublic void addCSSessionStatusChangedListener(CSSessionStatusChangedListener newListener)
addCSSessionStatusChangedListener
in interface CSClientService
newListener
- com.ibm.btt.clientserver.CSSessionStatusChangedListenerpublic void closeSession() throws DSECSInvalidRequestException
closeSession
in interface CSClientService
DSECSInvalidRequestException
public void establishSession() throws DSECSInvalidRequestException, DSECSSessionNotEstablishedException
establishSession
in interface CSClientService
DSECSInvalidRequestException
DSECSSessionNotEstablishedException
public void establishSession(boolean newSession) throws DSECSInvalidRequestException, DSECSSessionNotEstablishedException
establishSession
in interface CSClientService
newSession
- boolean
DSECSInvalidRequestException
DSECSSessionNotEstablishedException
public void finalize()
finalize
in class java.lang.Object
protected void fireAndSignalCSReplyEvent(CSReplyEvent anEvent, java.lang.String eventName)
anEvent
- com.ibm.btt.clientserver.CSReplyEventeventName
- java.lang.Stringprotected void fireAndSignalCSStatusChangedEvent(CSSessionStatusChangedEvent anEvent, java.lang.String eventName)
anEvent
- com.ibm.btt.clientserver.CSReplyEventeventName
- java.lang.Stringprotected void fireHandleCSNotificationEvent(CSNotificationEvent event)
event
- com.ibm.btt.clientserver.CSNotificationEventprotected void fireHandleCSReplyEvent(CSReplyEvent event)
event
- com.ibm.btt.clientserver.CSReplyEventprotected void fireHandleCSSessionStatusChangedEvent(CSSessionStatusChangedEvent event)
event
- com.ibm.btt.clientserver.CSSessionStatusChangedEventprotected boolean firstDown()
protected void freeCsNotifClToSrvConnection(HttpURLConnectionThin aHttpURLConnectionThin)
aHttpURLConnectionThin
- com.ibm.btt.clientserver.servlet.HttpURLConnectionThinprotected void freeCsReqProtocolConnection(HttpURLConnectionThin aHttpURLConnectionThin)
aHttpURLConnectionThin
- com.ibm.btt.clientserver.servlet.HttpURLConnectionThinpublic boolean getCreateSession()
protected HttpURLConnectionThin getCsAssignConnection() throws java.lang.Exception
java.lang.Exception
public java.lang.String getCsAssignServletName()
protected HttpURLConnectionThin getCsNotifClToSrvConnection() throws java.lang.Exception
java.lang.Exception
public java.lang.String getCsNotifClToSrvServletName()
protected HttpURLConnectionThin getCsNotifSrvToClConnection() throws java.lang.Exception
java.lang.Exception
public java.lang.String getCsNotifSrvToClServletName()
protected HttpURLConnectionThin getCsReqProtocolConnection() throws java.lang.Exception
java.lang.Exception
public java.lang.String getCsReqProtocolServletName()
public long getDefaultOperationTimeout()
getDefaultOperationTimeout
in interface CSClientService
protected static java.lang.Integer getIdRequest()
public boolean getKeepAliveConnection()
getKeepAliveConnection
in interface CSClientService
protected HttpURLConnectionThin getNewCsNotifClToSrvConnection() throws java.lang.Exception
java.lang.Exception
protected HttpURLConnectionThin getNewCsReqProtocolConnection() throws java.lang.Exception
java.lang.Exception
public java.lang.String getProxyCredentials()
getProxyCredentials
in interface CSClientService
public java.lang.String getProxyHost()
getProxyHost
in interface CSClientService
public int getProxyPort()
getProxyPort
in interface CSClientService
public int getReconnectionAttempts()
getReconnectionAttempts
in interface CSClientService
public boolean getRunInSession()
protected SendEventsBuffer getSendEventsBuffer()
public java.lang.String getServerCredentials()
getServerCredentials
in interface CSClientService
protected java.lang.Long getServerId()
public java.lang.String getServerName()
getServerName
in interface CSClientService
public java.lang.String getServerTID()
getServerTID
in interface CSClientService
protected java.lang.String getServiceId()
public java.lang.String getSessionId()
getSessionId
in interface CSClientService
public int getSessionStatus()
getSessionStatus
in interface CSClientService
public long getTimeBetweenReconnectionAttempts()
getTimeBetweenReconnectionAttempts
in interface CSClientService
protected long getTimeout()
public boolean getUsedForSrvToClEventsNotif()
getUsedForSrvToClEventsNotif
in interface CSClientService
public boolean getUseProxy()
getUseProxy
in interface CSClientService
public java.lang.String getUserAgent()
public void handleCSAsynchronousReplyEvent(CSAsynchronousReplyEvent event)
handleCSAsynchronousReplyEvent
in interface CSAsynchronousReplyListener
event
- com.ibm.btt.clientserver.CSAsynchronousReplyEventpublic java.lang.Object initializeFrom(Tag aTag)
initializeFrom
in class Service
aTag
- com.ibm.btt.base.Tag
public boolean isRetryOnError()
protected void manageCaseConnectionDown(java.lang.String who)
String
- public void receive(ClientOperation aClientOperation, java.lang.Integer requestId) throws DSECSInvalidRequestException, DSECSTimeoutException, DSECSRemoteOperationException
receive
in interface CSClientService
aClientOperation
- ClientOperationrequesId
- java.lang.Integer
DSECSInvalidRequestException
DSECSTimeoutException
DSECSRemoteOperationException
public void receive(ClientOperation aClientOperation, java.lang.Integer requestId, long timeout) throws DSECSInvalidRequestException, DSECSTimeoutException, DSECSRemoteOperationException
receive
in interface CSClientService
aClientOperation
- ClientOperationrequesId
- java.lang.Integertimeout
- long
DSECSInvalidRequestException
DSECSTimeoutException
DSECSRemoteOperationException
public void receive(Context aContext, java.lang.Integer requestId) throws DSECSInvalidRequestException, DSECSTimeoutException, DSECSRemoteOperationException
receive
in interface CSClientService
aContext
- ContextrequesId
- java.lang.Integer
DSECSInvalidRequestException
DSECSTimeoutException
DSECSRemoteOperationException
public void receive(Context aContext, java.lang.Integer requestId, long timeout) throws DSECSInvalidRequestException, DSECSTimeoutException, DSECSRemoteOperationException
receive
in interface CSClientService
aContext
- ContextrequesId
- java.lang.Integertimeout
- long
DSECSInvalidRequestException
DSECSTimeoutException
DSECSRemoteOperationException
public void removeCSNotificationListener(CSNotificationListener newListener)
removeCSNotificationListener
in interface CSClientService
newListener
- com.ibm.btt.clientserver.CSNotificationListenerpublic void removeCSReplyListener(CSReplyListener newListener)
removeCSReplyListener
in interface CSClientService
newListener
- com.ibm.btt.clientserver.CSReplyListenerpublic void removeCSSessionStatusChangedListener(CSSessionStatusChangedListener newListener)
removeCSSessionStatusChangedListener
in interface CSClientService
newListener
- com.ibm.btt.clientserver.CSSessionStatusChangedListenerpublic java.lang.Integer send(ClientOperation aClientOperation) throws DSECSInvalidRequestException
send
in interface CSClientService
aClientOperation
- ClientOperation
DSECSInvalidRequestException
public void sendAndWait(ClientOperation aClientOperation) throws DSECSTimeoutException, DSECSInvalidRequestException, DSECSRemoteOperationException
sendAndWait
in interface CSClientService
aClientOperation
- ClientOperation
DSECSTimeoutException
DSECSInvalidRequestException
DSECSRemoteOperationException
public void sendAndWait(ClientOperation aClientOperation, long timeout) throws DSECSTimeoutException, DSECSInvalidRequestException, DSECSRemoteOperationException
sendAndWait
in interface CSClientService
aClientOperation
- ClientOperationtimeout
- long
DSECSTimeoutException
DSECSInvalidRequestException
DSECSRemoteOperationException
public void sendEvent(java.util.EventObject myEvent) throws DSECSInvalidRequestException
sendEvent
in interface CSClientService
evt
- EventObject
DSECSInvalidRequestException
public void setCreateSession(boolean value)
boolean
- protected void setCsAssignConnection(HttpURLConnectionThin aCsAssignConnection)
aCsAssignConnection
- com.ibm.btt.clientserver.servlet.HttpURLConnectionThinpublic void setCsAssignServletName(java.lang.String newCsAssignServletName)
newCsAssignServletName
- java.lang.Stringprotected void setCsNotifClToSrvConnection(HttpURLConnectionThin aCsNotifClToSrvConnection)
aCsNotifClToSrvConnection
- com.ibm.btt.clientserver.servlet.HttpURLConnectionThinpublic void setCsNotifClToSrvServletName(java.lang.String newCsNotifClToSrvServletName)
newCsNotifClToSrvServletName
- java.lang.Stringprotected void setCsNotifSrvToClConnection(HttpURLConnectionThin aCsNotifSrvToClConnection)
aCsNotifSrvToClConnection
- com.ibm.btt.clientserver.servlet.HttpURLConnectionThinpublic void setCsNotifSrvToClServletName(java.lang.String newCsNotifSrvToClServletName)
newCsNotifSrvToClServletName
- java.lang.Stringprotected void setCsReqProtocolConnection(HttpURLConnectionThin aCsReqProtocolConnection)
aCsReqProtocolConnection
- com.ibm.btt.clientserver.servlet.HttpURLConnectionThinpublic void setCsReqProtocolServletName(java.lang.String newCsReqProtocolServletName)
newCsReqProtocolServletName
- java.lang.Stringpublic void setDefaultOperationTimeout(long aTimeout)
setDefaultOperationTimeout
in interface CSClientService
aTimeout
- longpublic void setKeepAliveConnection(boolean value)
setKeepAliveConnection
in interface CSClientService
value
- booleanpublic void setProxyCredentials(java.lang.String aProxyCredentials)
setProxyCredentials
in interface CSClientService
aProxyCredentials
- Stringpublic void setProxyHost(java.lang.String value)
setProxyHost
in interface CSClientService
value
- Stringpublic void setProxyPort(int value)
setProxyPort
in interface CSClientService
value
- intpublic void setReconnectionAttempts(int value)
setReconnectionAttempts
in interface CSClientService
value
- intpublic void setRetryOnError(boolean newRetryOnError)
newRetryOnError
- booleanpublic void setRunInSession(boolean newRunInSession)
newRunInSession
- booleanpublic void setServerCredentials(java.lang.String aServerCredentials)
setServerCredentials
in interface CSClientService
aServerCredentials
- Stringprotected void setServerId(java.lang.Long aServerId)
aServerId
- Longpublic void setServerName(java.lang.String serverName)
setServerName
in interface CSClientService
serverName
- java.lang.Stringpublic void setTimeBetweenReconnectionAttempts(long value)
setTimeBetweenReconnectionAttempts
in interface CSClientService
value
- longprotected void setTimeout(long aTimeout)
aTimeout
- longpublic void setUsedForSrvToClEventNotif(boolean used)
setUsedForSrvToClEventNotif
in interface CSClientService
used
- booleanpublic void setUseProxy(boolean value)
setUseProxy
in interface CSClientService
value
- booleanpublic void setUserAgent(java.lang.String userAgent)
fieldUserAgent
- java.lang.Stringpublic void startListen()
public void terminate() throws DSEException
terminate
in interface ProcessorNotifier
terminate
in interface Notifier
terminate
in class Service
DSEException
public java.lang.String toString()
toString
in class Service
public java.net.ServerSocket getServerSocket()
getServerSocket
in interface CSClientService
public void setServerSocket(java.net.ServerSocket aSocket)
setServerSocket
in interface CSClientService
aSocket
- ServerSocket used to receive eventspublic int getEventsPort()
getEventsPort
in interface CSClientService
public void setEventsPort(int aPort)
setEventsPort
in interface CSClientService
aPort
- intpublic void setPermanentConnectionForEvents(boolean permConnection)
setPermanentConnectionForEvents
in interface CSClientService
permConnection
- booleanpublic boolean getPermanentConnectionForEvents()
getPermanentConnectionForEvents
in interface CSClientService
public void setReceiveReplyAfterSynchronousSendTimeout(boolean receiveReply)
receiveReply
- booleanpublic boolean getReceiveReplyAfterSynchronousSendTimeout()
protected void initializeServerSocket() throws java.io.IOException
java.io.IOException
- I/O error occurs when opening the socket.public Vector getTimeoutedSynchronousRequests()
public boolean isEnableSSL()
isEnableSSL
in interface CSClientService
public void setEnableSSL(boolean enableSSL)
setEnableSSL
in interface CSClientService
enableSSL
- The enableSSL to setpublic SSLEnabler getSSLEnabler()
getSSLEnabler
in interface CSClientService
public void setSSLEnabler(SSLEnabler sslEnabler)
setSSLEnabler
in interface CSClientService
sslEnabler
- The sslEnabler to setpublic java.lang.String getCharEncoding()
public void setCharEncoding(java.lang.String c) throws java.io.UnsupportedEncodingException
c
- String
java.io.UnsupportedEncodingException
public void closeSessionAndDeleteCookies() throws DSECSInvalidRequestException
DSECSInvalidRequestException
public void signalEvent(java.lang.String anEventName, java.util.Hashtable aParametersTable) throws DSEInvalidArgumentException
signalEvent
in interface Notifier
anEventName
- java.lang.StringaParametersTable
- java.util.Hashtable
DSEInvalidArgumentException
public void signalEvent(java.lang.String anEventName) throws DSEInvalidArgumentException
signalEvent
in interface ProcessorNotifier
signalEvent
in interface Notifier
signalEvent
in class BTTProcessorNotifier
anEventName
- event name
DSEInvalidArgumentException
public void signalEvent(DSEEventObject anEvent)
anEvent
- DSEEventObjectpublic void addHandler(Handler aHandler, java.lang.String anEventName) throws DSEInvalidArgumentException
DSEInvalidArgumentException
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |