Package org.serviceconnector.call
Class SCMPClnCreateSessionCall
java.lang.Object
org.serviceconnector.call.SCMPCallAdapter
org.serviceconnector.call.SCMPClnCreateSessionCall
- All Implemented Interfaces:
ISCMPCall
The Class SCMPClnCreateSessionCall. Call tries creating a session to a backend server over a SC.
- Author:
- JTraber
-
Field Summary
Fields inherited from class org.serviceconnector.call.SCMPCallAdapter
requester, requestMessage, responseMessage, serviceName, sessionId -
Constructor Summary
ConstructorsConstructorDescriptionSCMPClnCreateSessionCall(IRequester requester, String serviceName) Instantiates a new SCMPClnCreateSessionCall. -
Method Summary
Modifier and TypeMethodDescriptionGets the message type.voidinvoke(ISCMPMessageCallback scmpCallback, int timeoutMillis) Invoke asynchronous.voidsetCompressed(boolean compressed) Sets the compression.voidsetEchoIntervalSeconds(int echoInterval) Sets the echo interval seconds.voidsetRequestBody(Object obj) Sets the body.voidsetSessionInfo(String sessionInfo) Sets the session info.Methods inherited from class org.serviceconnector.call.SCMPCallAdapter
getRequest, getResponse
-
Constructor Details
-
SCMPClnCreateSessionCall
Instantiates a new SCMPClnCreateSessionCall.- Parameters:
requester- the requester to use when invoking callserviceName- the service name
-
-
Method Details
-
invoke
Invoke asynchronous.- Specified by:
invokein interfaceISCMPCall- Overrides:
invokein classSCMPCallAdapter- Parameters:
scmpCallback- the callbacktimeoutMillis- the timeout in milliseconds- Throws:
Exception- the exception
-
setSessionInfo
Sets the session info.- Parameters:
sessionInfo- the new session info
-
setEchoIntervalSeconds
public void setEchoIntervalSeconds(int echoInterval) Sets the echo interval seconds.- Parameters:
echoInterval- the new echo interval seconds
-
setCompressed
public void setCompressed(boolean compressed) Sets the compression.- Parameters:
compressed- the compression
-
setRequestBody
Sets the body.- Specified by:
setRequestBodyin interfaceISCMPCall- Overrides:
setRequestBodyin classSCMPCallAdapter- Parameters:
obj- the new body
-
getMessageType
Gets the message type.- Returns:
- the message type
-