Messaging is a better alternative to service topics for sending point-to-point requests.
@Deprecated public interface ServiceRequest
ServiceTopicData
to a ServiceHandler
.Modifier and Type | Method and Description |
---|---|
TopicMessage |
createResponseMessage(String... headers)
Deprecated.
Convenience method to create a message that can be returned in a
ServiceResponse . |
TopicClient |
getClient()
Deprecated.
Returns the client that initiated the request.
|
String |
getRequestId()
Deprecated.
The request id for the request.
|
TopicMessage |
getRequestMessage()
Deprecated.
Returns the request message.
|
String |
getRequestType()
Deprecated.
Returns the request type (or 'command').
|
ServiceTopicData |
getTopicData()
Deprecated.
Returns the topic data through which the request was invoked.
|
String getRequestType()
TopicClient getClient()
String getRequestId()
This is a unique identifier for the request within the client.
This value must be returned within the ServiceResponse
TopicMessage getRequestMessage()
ServiceTopicData getTopicData()
TopicMessage createResponseMessage(String... headers) throws APIException
ServiceResponse
.
This is the equivalent of calling
ServiceTopicData.createDeltaMessage(String...)
on the
topic data
.
headers
- optional user headersAPIException
- if unable to create the messageCopyright © 2016 Push Technology Ltd. All Rights Reserved.