public class SendMessageAgent extends ServiceAgent<MessageResult>
clientIdentity, httpMethod, onCompleteListener, serviceResult, serviceResultClass, serviceUri| Constructor and Description |
|---|
SendMessageAgent(byte[] message,
java.lang.String fromRegistrationId,
java.lang.String recipientIds,
java.net.URI baseUri,
ClientIdentity identity,
java.lang.Object state)
Initializes an instance of the
SendMessageAgent class |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
getRequestBodyData()
Gets the byte array for HTTP request body.
|
protected boolean |
parseServiceResultRequired()
gets the flag to indicate whether service result are required to be
parsed.
|
constructHttpRequest, getContentType, getServiceResult, handleException, handleException, OnCompleteRequest, parseOutput, processRequest, setServiceResultpublic SendMessageAgent(byte[] message,
java.lang.String fromRegistrationId,
java.lang.String recipientIds,
java.net.URI baseUri,
ClientIdentity identity,
java.lang.Object state)
throws java.lang.Exception
SendMessageAgent classmessage - the message contentfromRegistrationId - the message sent fromrecipientIds - the message recipientsbaseUri - base URI objectidentity - the client identitystate - user defined state objectjava.lang.Exceptionprotected byte[] getRequestBodyData()
throws HawaiiException
ServiceAgentgetRequestBodyData in class ServiceAgent<MessageResult>HawaiiException - byte[]protected boolean parseServiceResultRequired()
ServiceAgentparseServiceResultRequired in class ServiceAgent<MessageResult>