|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The CSClientService interface provides the C/S service interface on the client side
Field Summary | |
static java.lang.String |
CS_REPLY_EVENT
|
static java.lang.String |
CS_REQUEST_ID
|
static java.lang.String |
CS_SESSION_STATUS
|
static java.lang.String |
CS_STATUS_CHANGED_EVENT
|
static int |
DOWN
|
static int |
NonSecure
|
static int |
NOT_ESTABLISHED
|
static int |
OK
|
static int |
RESET
|
static int |
SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5
|
static int |
SSL_RSA_EXPORT_WITH_RC4_40_MD5
|
static int |
SSL_RSA_WITH_DES_CBC_SHA
|
static int |
SSL_RSA_WITH_NULL_MD5
|
static int |
SSL_RSA_WITH_NULL_SHA
|
Method Summary | |
void |
addCSNotificationListener(CSNotificationListener newListener)
Registers the notification of events |
void |
addCSReplyListener(CSReplyListener newListener)
Registers the notification of a request reply |
void |
addCSSessionStatusChangedListener(CSSessionStatusChangedListener newListener)
Registers the notification of client/server status changes |
void |
closeSession()
Closes the session. |
void |
establishSession()
Establishes a session with the server. |
void |
establishSession(boolean newSession)
Establishes a session with the server. |
long |
getDefaultOperationTimeout()
Returns the timeout used in the methods: sendAndWait(ClientOperation), receive(ClientOperation, Integer), receive (Context, Integer) |
boolean |
getKeepAliveConnection()
Returns false if the connection with the server is used only for one request. |
java.lang.String |
getKeyRingClass()
Returns the package and class name that contains the certificate to establish a secure session. |
java.lang.String |
getProxyCredentials()
Returns the authentification proxy info. |
java.lang.String |
getProxyHost()
Returns the name of the proxy address (HTTP address). |
int |
getProxyPort()
Gets the proxy port. |
int |
getReconnectionAttempts()
Returns the number of attempts to reestablish the connection. |
java.lang.String |
getServerCredentials()
Returns the authentification server info. |
java.lang.String |
getServerName()
Returns the name of the server address (HTTP address). |
java.lang.String |
getServerTID()
Gets the server terminal ID. |
java.lang.String |
getSessionId()
Gets the session ID assigned by the server. |
int |
getSessionStatus()
Gets the session status. |
int |
getSessionType()
Gets the session type. |
long |
getTimeBetweenReconnectionAttempts()
Gets the time between reconnection attempts when the session is down. |
boolean |
getUsedForSrvToClEventsNotif()
Gets true if the CSClient is used on the server for client event notification. |
boolean |
getUseProxy()
Returns true if the CSClientService establish a connection through a proxy. |
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 interfice. |
void |
removeCSReplyListener(CSReplyListener newListener)
Removes the specified CSReplyListener so that it no longer receives CSReplyEvents from this interfice. |
void |
removeCSSessionStatusChangedListener(CSSessionStatusChangedListener newListener)
Removes the specified CSSessionStatusChangedListener so that it no longer receives CSSessionStatusChangedEvents from this interfice. |
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 |
setDefaultOperationTimeout(long aTimeout)
Sets the defaultOperationTimeout property (long) value. |
void |
setKeepAliveConnection(boolean value)
Sets the option to use the connection with the server for more than one request. |
void |
setKeyRingClass(java.lang.String aKeyRingClass)
Sets the package and class name that contains the certificate to establish a secure session. |
void |
setProxyCredentials(java.lang.String aProxyCredentials)
Sets the authentification proxy info. |
void |
setProxyHost(java.lang.String value)
Sets set the name of the proxy address (HTTP address) |
void |
setProxyPort(int value)
Sets the proxy port. |
void |
setReconnectionAttempts(int value)
Sets the number of attempts to reestablish the connection. |
void |
setServerCredentials(java.lang.String aServerCredentials)
Sets the authentification server info. |
void |
setServerName(java.lang.String serverName)
Sets set the name of the server address (HTTP address) |
void |
setTimeBetweenReconnectionAttempts(long value)
Sets the time between reconnection attempts when the session is down. |
void |
setUsedForSrvToClEventNotif(boolean used)
|
void |
setUseProxy(boolean value)
Sets the option to establish a connection with the server through a proxy. |
Methods inherited from interface com.ibm.dse.base.Notifier |
addHandler,
getHandlersList,
getName,
removeHandler,
setName,
signalEvent,
signalEvent,
terminate |
Field Detail |
public static final int RESET
public static final int OK
public static final int DOWN
public static final int NOT_ESTABLISHED
public static final java.lang.String CS_STATUS_CHANGED_EVENT
public static final java.lang.String CS_SESSION_STATUS
public static final java.lang.String CS_REPLY_EVENT
public static final java.lang.String CS_REQUEST_ID
public static final int NonSecure
public static final int SSL_RSA_WITH_DES_CBC_SHA
public static final int SSL_RSA_EXPORT_WITH_RC4_40_MD5
public static final int SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5
public static final int SSL_RSA_WITH_NULL_MD5
public static final int SSL_RSA_WITH_NULL_SHA
Method Detail |
public void addCSNotificationListener(CSNotificationListener newListener)
newListener
- com.ibm.dse.clientserver.CSNotificationListenerpublic void addCSReplyListener(CSReplyListener newListener)
newListener
- com.ibm.dse.clientserver.CSReplyListenerpublic void addCSSessionStatusChangedListener(CSSessionStatusChangedListener newListener)
newListener
- com.ibm.dse.clientserver.CSSessionStatusChangedListenerpublic void closeSession() throws DSECSInvalidRequestException
public void establishSession() throws DSECSInvalidRequestException, DSECSSessionNotEstablishedException
public void establishSession(boolean newSession) throws DSECSInvalidRequestException, DSECSSessionNotEstablishedException
boolean
- newSessionpublic long getDefaultOperationTimeout()
public boolean getKeepAliveConnection()
public java.lang.String getKeyRingClass()
public java.lang.String getProxyCredentials()
public java.lang.String getProxyHost()
public int getProxyPort()
public int getReconnectionAttempts()
public java.lang.String getServerCredentials()
public java.lang.String getServerName()
public java.lang.String getServerTID()
public java.lang.String getSessionId()
public int getSessionStatus()
public int getSessionType()
NonSecure = 0
SSL_RSA_WITH_DES_CBC_SHA=1
SSL_RSA_EXPORT_WITH_RC4_40_MD5=2
SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5=3
SSL_RSA_WITH_NULL_MD5=4
SSL_RSA_WITH_NULL_SHA=5
public long getTimeBetweenReconnectionAttempts()
public boolean getUsedForSrvToClEventsNotif()
public boolean getUseProxy()
public void receive(ClientOperation aClientOperation, java.lang.Integer requestId) throws DSECSInvalidRequestException, DSECSTimeoutException, DSECSRemoteOperationException
aClientOperation
- ClientOperationrequesId
- java.lang.Integerpublic void receive(ClientOperation aClientOperation, java.lang.Integer requestId, long timeout) throws DSECSInvalidRequestException, DSECSTimeoutException, DSECSRemoteOperationException
aClientOperation
- ClientOperationrequesId
- java.lang.Integertimeout
- longpublic void receive(Context aContext, java.lang.Integer requestId) throws DSECSInvalidRequestException, DSECSTimeoutException, DSECSRemoteOperationException
aContext
- ContextrequesId
- java.lang.Integerpublic void receive(Context aContext, java.lang.Integer requestId, long timeout) throws DSECSInvalidRequestException, DSECSTimeoutException, DSECSRemoteOperationException
aContext
- ContextrequesId
- java.lang.Integertimeout
- longpublic void removeCSNotificationListener(CSNotificationListener newListener)
newListener
- com.ibm.dse.clientserver.CSNotificationListenerpublic void removeCSReplyListener(CSReplyListener newListener)
newListener
- com.ibm.dse.clientserver.CSReplyListenerpublic void removeCSSessionStatusChangedListener(CSSessionStatusChangedListener newListener)
newListener
- com.ibm.dse.clientserver.CSSessionStatusChangedListenerpublic java.lang.Integer send(ClientOperation aClientOperation) throws DSECSInvalidRequestException
aClientOperation
- ClientOperationpublic void sendAndWait(ClientOperation aClientOperation) throws DSECSTimeoutException, DSECSInvalidRequestException, DSECSRemoteOperationException
aClientOperation
- ClientOperationpublic void sendAndWait(ClientOperation aClientOperation, long timeout) throws DSECSTimeoutException, DSECSInvalidRequestException, DSECSRemoteOperationException
aClientOperation
- ClientOperationtimeout
- longpublic void sendEvent(java.util.EventObject myEvent) throws DSECSInvalidRequestException
evt
- EventObjectpublic void setDefaultOperationTimeout(long aTimeout)
aTimeout
- longpublic void setKeepAliveConnection(boolean value)
value
- booleanpublic void setKeyRingClass(java.lang.String aKeyRingClass)
aKeyRingClass
- java.lang.Stringpublic void setProxyCredentials(java.lang.String aProxyCredentials)
aProxyCredentials
- java.lang.Stringpublic void setProxyHost(java.lang.String value)
value
- java.lang.Stringpublic void setProxyPort(int value)
value
- intpublic void setReconnectionAttempts(int value)
value
- intpublic void setServerCredentials(java.lang.String aServerCredentials)
aServerCredentials
- java.lang.Stringpublic void setServerName(java.lang.String serverName)
serverName
- java.lang.Stringpublic void setTimeBetweenReconnectionAttempts(long value)
value
- longpublic void setUsedForSrvToClEventNotif(boolean used)
used
- booleanpublic void setUseProxy(boolean value)
used
- boolean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |