public class SmsSingleSearchEndpoint extends AbstractMethod<java.lang.String,SmsSingleSearchResponse>
httpWrapper| Constructor and Description |
|---|
SmsSingleSearchEndpoint(HttpWrapper httpWrapper) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Class[] |
getAcceptableAuthMethods() |
org.apache.http.client.methods.RequestBuilder |
makeRequest(java.lang.String id)
Construct and return a RequestBuilder instance from the provided request.
|
SmsSingleSearchResponse |
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 SmsSingleSearchEndpoint(HttpWrapper httpWrapper)
protected java.lang.Class[] getAcceptableAuthMethods()
getAcceptableAuthMethods in class AbstractMethod<java.lang.String,SmsSingleSearchResponse>public org.apache.http.client.methods.RequestBuilder makeRequest(java.lang.String id) throws java.io.UnsupportedEncodingException
AbstractMethodmakeRequest in class AbstractMethod<java.lang.String,SmsSingleSearchResponse>id - A RequestT representing input to the REST call to be madejava.io.UnsupportedEncodingException - if UTF-8 encoding is not supported by the JVMpublic SmsSingleSearchResponse parseResponse(org.apache.http.HttpResponse response) throws java.io.IOException
AbstractMethodparseResponse in class AbstractMethod<java.lang.String,SmsSingleSearchResponse>response - An HttpResponse returned from the Nexmo Voice APIjava.io.IOException - if a problem occurs parsing the response