Package | com.pushtechnology.diffusion |
Class | public class ServiceTopicResponse |
Inheritance | ServiceTopicResponse ![]() |
Since : | 4.1.0 |
This encapsulates the details of a response from a call to ServiceTopicHandler#request(String, TopicMessage).
Method | Defined By | ||
---|---|---|---|
ServiceTopicResponse(handler:ServiceTopicHandler, requestId:String, responseType:String, responseMessage:TopicMessage) | ServiceTopicResponse | ||
Returns the handler that the request was issued to. | ServiceTopicResponse | ||
getRequestId():String
Return the request identifier. | ServiceTopicResponse | ||
Return details of the response in the form of a Message containing
headers and/or data returned from the server. | ServiceTopicResponse | ||
getResponseType():String
Returns a response type. | ServiceTopicResponse |
ServiceTopicResponse | () | Constructor |
public function ServiceTopicResponse(handler:ServiceTopicHandler, requestId:String, responseType:String, responseMessage:TopicMessage)
handler:ServiceTopicHandler | |
requestId:String | |
responseType:String | |
responseMessage:TopicMessage |
getHandler | () | method |
public function getHandler():ServiceTopicHandler
Returns the handler that the request was issued to.
ReturnsServiceTopicHandler — handler
|
getRequestId | () | method |
public function getRequestId():String
Return the request identifier.
This returns the original identifier that was passed with the request, as returned by ServiceTopicHandler#request(String, TopicMessage).
ReturnsString — the request identifier.
|
getResponseMessage | () | method |
public function getResponseMessage():TopicMessage
Return details of the response in the form of a Message containing headers and/or data returned from the server.
Note that it is permissible for the response Message to be completely empty.
ReturnsTopicMessage — the response message - may be an empty message but will not be
null.
|
getResponseType | () | method |
public function getResponseType():String
Returns a response type.
This identifies the type of response and is as defined by the service itself.
ReturnsString — response type.
|