public class ReceiveMessagesAgent extends ServiceAgent<MessageResult>
clientIdentity, httpMethod, onCompleteListener, serviceResult, serviceResultClass, serviceUri| Constructor and Description |
|---|
ReceiveMessagesAgent(java.net.URI baseUri,
ClientIdentity identity,
java.lang.String registrationId,
java.lang.String filter,
java.lang.Object state)
Initializes an instance of the
ReceiveMessagesAgent class |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType()
Gets the required content type used by Content-Type HTTP header.
|
protected void |
parseOutput(java.io.InputStream inputStream)
Parses the response from server.
|
constructHttpRequest, getRequestBodyData, getServiceResult, handleException, handleException, OnCompleteRequest, parseServiceResultRequired, processRequest, setServiceResultpublic ReceiveMessagesAgent(java.net.URI baseUri,
ClientIdentity identity,
java.lang.String registrationId,
java.lang.String filter,
java.lang.Object state)
throws java.lang.Exception
ReceiveMessagesAgent classbaseUri - the service base URIidentity - the client identityregistrationId - the endpoint registrationIdfilter - Specifies a list of registration ids for Endpoints and/or
Groups that identify senders and/or group recipients of
desired messages.state - user defined state objectjava.lang.Exceptionpublic java.lang.String getContentType()
ServiceAgentgetContentType in class ServiceAgent<MessageResult>protected void parseOutput(java.io.InputStream inputStream)
ServiceAgentparseOutput in class ServiceAgent<MessageResult>