Package org.serviceconnector.call
Class SCMPCallAdapter
java.lang.Object
org.serviceconnector.call.SCMPCallAdapter
- All Implemented Interfaces:
ISCMPCall
- Direct Known Subclasses:
SCMPAttachCall,SCMPCheckRegistrationCall,SCMPClnChangeSubscriptionCall,SCMPClnCreateSessionCall,SCMPClnDeleteSessionCall,SCMPClnExecuteCall,SCMPClnSubscribeCall,SCMPClnUnsubscribeCall,SCMPCscAbortSubscriptionCall,SCMPCscChangeSubscriptionCall,SCMPCscCreateSessionCall,SCMPCscDeleteSessionCall,SCMPCscExecuteCall,SCMPCscSubscribeCall,SCMPCscUnsubscribeCall,SCMPDeRegisterServerCall,SCMPDetachCall,SCMPEchoCall,SCMPFileDownloadCall,SCMPFileListCall,SCMPFileUploadCall,SCMPInspectCall,SCMPManageCall,SCMPPublishCall,SCMPReceivePublicationCall,SCMPRegisterServerCall,SCMPSrvAbortSessionCall,SCMPSrvAbortSubscriptionCall,SCMPSrvChangeSubscriptionCall,SCMPSrvCreateSessionCall,SCMPSrvDeleteSessionCall,SCMPSrvExecuteCall,SCMPSrvSubscribeCall,SCMPSrvUnsubscribeCall
The Class SCMPCallAdapter. Provides basic functionality for calls.
- Author:
- JTraber
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IRequesterThe client to used to invoke the call.protected SCMPMessageThe request message.protected SCMPMessageThe response message.protected StringThe service name.protected StringThe session id to use for the call. -
Constructor Summary
ConstructorsConstructorDescriptionSCMPCallAdapter(IRequester requester) Instantiates a new SCMPCallAdapter.SCMPCallAdapter(IRequester requester, String serviceName) Instantiates a new SCMP call adapter.SCMPCallAdapter(IRequester requester, String serviceName, String sessionId) Instantiates a new SCMPCallAdapter.SCMPCallAdapter(IRequester requester, SCMPMessage messageToForward) Instantiates a new SCMPCallAdapter. -
Method Summary
Modifier and TypeMethodDescriptionGets the call.Gets the result.voidinvoke(ISCMPMessageCallback callback, int timeoutMillis) Invoke asynchronous.voidsetRequestBody(Object obj) Sets the body.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.serviceconnector.call.ISCMPCall
getMessageType
-
Field Details
-
requester
The client to used to invoke the call. -
sessionId
The session id to use for the call. -
serviceName
The service name. -
requestMessage
The request message. -
responseMessage
The response message.
-
-
Constructor Details
-
SCMPCallAdapter
Instantiates a new SCMPCallAdapter.- Parameters:
requester- the requester
-
SCMPCallAdapter
Instantiates a new SCMP call adapter.- Parameters:
requester- the requesterserviceName- the service name
-
SCMPCallAdapter
Instantiates a new SCMPCallAdapter.- Parameters:
requester- the requesterserviceName- the service namesessionId- the session id
-
SCMPCallAdapter
Instantiates a new SCMPCallAdapter. Constructor is necessary because in SC you need to hand over received message.- Parameters:
requester- the requestermessageToForward- the message
-
-
Method Details
-
invoke
Invoke asynchronous. -
setRequestBody
Sets the body.- Specified by:
setRequestBodyin interfaceISCMPCall- Parameters:
obj- the new body
-
getRequest
Gets the call.- Specified by:
getRequestin interfaceISCMPCall- Returns:
- the call
-
getResponse
Gets the result.- Specified by:
getResponsein interfaceISCMPCall- Returns:
- the result
-