TRequest - Generic request typeTResult - Generic service result type which inherits ServiceResult
typepublic abstract class PostableServiceAgent<TRequest,TResult extends ServiceResult> extends ServiceAgent<TResult>
| Modifier and Type | Field and Description |
|---|---|
protected TRequest |
request
request object
|
clientIdentity, httpMethod, onCompleteListener, serviceResult, serviceResultClass, serviceUri| Constructor and Description |
|---|
PostableServiceAgent(TRequest request,
java.lang.Class<TResult> resultClass,
java.net.URI baseUri,
ClientIdentity identity,
HttpMethod httpMethod,
java.lang.Object state)
Initializes an instance of the
PostableServiceAgent class |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
getRequestBodyData()
Gets the byte array for HTTP request body.
|
constructHttpRequest, getContentType, getServiceResult, handleException, handleException, OnCompleteRequest, parseOutput, parseServiceResultRequired, processRequest, setServiceResultprotected TRequest request
public PostableServiceAgent(TRequest request, java.lang.Class<TResult> resultClass, java.net.URI baseUri, ClientIdentity identity, HttpMethod httpMethod, java.lang.Object state) throws java.lang.Exception
PostableServiceAgent classrequest - request objectresultClass - The class object for the generic service result typebaseUri - base URI objectidentity - client identityhttpMethod - http method enumstate - user defined statejava.lang.Exceptionprotected byte[] getRequestBodyData()
throws HawaiiException
ServiceAgentgetRequestBodyData in class ServiceAgent<TResult extends ServiceResult>HawaiiException - byte[]