public class CancelNumberEndpoint extends AbstractMethod<CancelNumberRequest,CancelNumberResponse>
| Constructor and Description |
|---|
CancelNumberEndpoint(HttpWrapper httpWrapper) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Class[] |
getAcceptableAuthMethods() |
org.apache.http.client.methods.RequestBuilder |
makeRequest(CancelNumberRequest request)
Construct and return a RequestBuilder instance from the provided request.
|
CancelNumberResponse |
parseResponse(org.apache.http.HttpResponse response)
Construct a ResultT representing the contents of the HTTP response returned from the Nexmo Voice API.
|
applyAuth, execute, getAuthMethod, setHttpClientpublic CancelNumberEndpoint(HttpWrapper httpWrapper)
protected java.lang.Class[] getAcceptableAuthMethods()
getAcceptableAuthMethods in class AbstractMethod<CancelNumberRequest,CancelNumberResponse>public org.apache.http.client.methods.RequestBuilder makeRequest(CancelNumberRequest request) throws NexmoClientException, java.io.UnsupportedEncodingException
AbstractMethodmakeRequest in class AbstractMethod<CancelNumberRequest,CancelNumberResponse>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 JVMpublic CancelNumberResponse parseResponse(org.apache.http.HttpResponse response) throws NexmoClientException, java.io.IOException
AbstractMethodparseResponse in class AbstractMethod<CancelNumberRequest,CancelNumberResponse>response - An HttpResponse returned from the Nexmo Voice APIjava.io.IOException - if a problem occurs parsing the responseNexmoClientException