public class SpeechRecognitionAgent extends PostableServiceAgent<RecognitionRequest,SpeechServiceResult>
requestclientIdentity, httpMethod, onCompleteListener, serviceResult, serviceResultClass, serviceUri| Constructor and Description |
|---|
SpeechRecognitionAgent(RecognitionRequest request,
java.net.URI baseUri,
ClientIdentity identity,
java.lang.Object state)
Initializes an instance of the
SpeechRecognitionAgent 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, setServiceResultpublic SpeechRecognitionAgent(RecognitionRequest request, java.net.URI baseUri, ClientIdentity identity, java.lang.Object state) throws java.lang.Exception
SpeechRecognitionAgent classrequest - RecognitionRequest objectbaseUri - base URI objectidentity - client identitystate - user defined statejava.lang.Exceptionprotected byte[] getRequestBodyData()
throws HawaiiException
ServiceAgentgetRequestBodyData in class PostableServiceAgent<RecognitionRequest,SpeechServiceResult>HawaiiException - byte[]