Messaging is a better alternative to service topics for sending point-to-point requests.
@Deprecated public final class ServiceResponse extends Object
ServiceRequest
issued to a
ServiceHandler
via an instance of ServiceTopicData
.
The response may be returned from a call of
ServiceHandler.serviceRequest(ServiceRequest)
or using
ServiceTopicData.serviceResponse(ServiceResponse)
for asynchronous
responses.
Constructor and Description |
---|
ServiceResponse(ServiceRequest request,
String responseType,
TopicMessage responseMessage)
Deprecated.
Creates a response for specified request and for a specified response
type.
|
ServiceResponse(String clientId,
String requestId,
String responseType,
TopicMessage responseMessage)
Deprecated.
Creates a response for a request identified by client identifier and
request number and for a specified response type.
|
Modifier and Type | Method and Description |
---|---|
String |
getClientId()
Deprecated.
Returns client Id.
|
TopicMessage |
getReponseMessage()
Deprecated.
Returns the response message.
|
String |
getRequestId()
Deprecated.
Returns request id.
|
String |
getResponseType()
Deprecated.
Returns the response type.
|
public ServiceResponse(String clientId, String requestId, String responseType, TopicMessage responseMessage) throws APIException
clientId
- the client identifierrequestId
- the request idresponseType
- the response typeresponseMessage
- message encapsulating the response. This may be
null if there is no specific response dataAPIException
- if unable to create responsepublic ServiceResponse(ServiceRequest request, String responseType, TopicMessage responseMessage) throws APIException
request
- the requestresponseType
- the response typeresponseMessage
- optional response messageAPIException
- if unable to create a responsepublic String getClientId()
public String getRequestId()
public String getResponseType()
public TopicMessage getReponseMessage()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.