public class PredictLocationAgent extends ServiceAgent<PredictLocationResult>
clientIdentity, httpMethod, onCompleteListener, serviceResult, serviceResultClass, serviceUri| Constructor and Description |
|---|
PredictLocationAgent(java.net.URI baseUri,
ClientIdentity clientIdentity,
PredictLocationRequest request)
Initializes an instance of the
PredictLocationAgent class |
PredictLocationAgent(java.net.URI baseUri,
ClientIdentity clientIdentity,
PredictLocationRequest request,
java.lang.Object state)
Initializes an instance of the
PredictLocationAgent class |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
getRequestBodyData()
Override
getRequestBodyData method of ServiceAgent class |
PredictLocationRequest |
getRequst()
Gets location prediction request.
|
protected void |
parseOutput(java.io.InputStream inputStream)
Override
parseOutput method of ServiceAgent class |
constructHttpRequest, getContentType, getServiceResult, handleException, handleException, OnCompleteRequest, parseServiceResultRequired, processRequest, setServiceResultpublic PredictLocationAgent(java.net.URI baseUri,
ClientIdentity clientIdentity,
PredictLocationRequest request)
throws java.lang.Exception
PredictLocationAgent classbaseUri - uri to access serviceclientIdentity - the client identityrequest - predict location requestjava.lang.Exceptionpublic PredictLocationAgent(java.net.URI baseUri,
ClientIdentity clientIdentity,
PredictLocationRequest request,
java.lang.Object state)
throws java.lang.Exception
PredictLocationAgent classbaseUri - uri to access serviceclientIdentity - the client identityrequest - predict location requeststate - specifies a user-defined objectjava.lang.Exceptionpublic PredictLocationRequest getRequst()
protected byte[] getRequestBodyData()
throws HawaiiException
getRequestBodyData method of ServiceAgent classgetRequestBodyData in class ServiceAgent<PredictLocationResult>HawaiiException - byte[]protected void parseOutput(java.io.InputStream inputStream)
parseOutput method of ServiceAgent classparseOutput in class ServiceAgent<PredictLocationResult>