public class CreateCallMethod extends AbstractMethod<Call,CallEvent>
| Constructor and Description |
|---|
CreateCallMethod(HttpWrapper httpWrapper) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Class[] |
getAcceptableAuthMethods() |
org.apache.http.client.methods.RequestBuilder |
makeRequest(Call request)
Construct and return a RequestBuilder instance from the provided request.
|
CallEvent |
parseResponse(org.apache.http.HttpResponse response)
Construct a ResultT representing the contents of the HTTP response returned from the Nexmo Voice API.
|
void |
setUri(java.lang.String uri) |
applyAuth, execute, getAuthMethod, setHttpClientpublic CreateCallMethod(HttpWrapper httpWrapper)
public org.apache.http.client.methods.RequestBuilder makeRequest(Call request) throws NexmoClientException, java.io.UnsupportedEncodingException
AbstractMethodmakeRequest in class AbstractMethod<Call,CallEvent>request - A RequestT representing input to the REST call to be madeNexmoClientException - if a problem is encountered constructing the request or response.java.io.UnsupportedEncodingException - if UTF-8 encoding is not supported by the JVMprotected java.lang.Class[] getAcceptableAuthMethods()
getAcceptableAuthMethods in class AbstractMethod<Call,CallEvent>public CallEvent parseResponse(org.apache.http.HttpResponse response) throws java.io.IOException
AbstractMethodparseResponse in class AbstractMethod<Call,CallEvent>response - An HttpResponse returned from the Nexmo Voice APIjava.io.IOException - if a problem occurs parsing the responsepublic void setUri(java.lang.String uri)