Package com.nexmo.client.sms
Class SmsSingleSearchEndpoint
- java.lang.Object
-
- com.nexmo.client.AbstractMethod<java.lang.String,SmsSingleSearchResponse>
-
- com.nexmo.client.sms.SmsSingleSearchEndpoint
-
- All Implemented Interfaces:
Method<java.lang.String,SmsSingleSearchResponse>
public class SmsSingleSearchEndpoint extends AbstractMethod<java.lang.String,SmsSingleSearchResponse>
-
-
Field Summary
-
Fields inherited from class com.nexmo.client.AbstractMethod
httpWrapper
-
-
Constructor Summary
Constructors Constructor Description SmsSingleSearchEndpoint(HttpWrapper httpWrapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Class[]getAcceptableAuthMethods()org.apache.http.client.methods.RequestBuildermakeRequest(java.lang.String id)Construct and return a RequestBuilder instance from the provided request.SmsSingleSearchResponseparseResponse(org.apache.http.HttpResponse response)Construct a ResultT representing the contents of the HTTP response returned from the Nexmo Voice API.-
Methods inherited from class com.nexmo.client.AbstractMethod
applyAuth, execute, getAuthMethod, setHttpClient
-
-
-
-
Constructor Detail
-
SmsSingleSearchEndpoint
public SmsSingleSearchEndpoint(HttpWrapper httpWrapper)
-
-
Method Detail
-
getAcceptableAuthMethods
protected java.lang.Class[] getAcceptableAuthMethods()
- Specified by:
getAcceptableAuthMethodsin classAbstractMethod<java.lang.String,SmsSingleSearchResponse>
-
makeRequest
public org.apache.http.client.methods.RequestBuilder makeRequest(java.lang.String id) throws java.io.UnsupportedEncodingException
Description copied from class:AbstractMethodConstruct and return a RequestBuilder instance from the provided request.- Specified by:
makeRequestin classAbstractMethod<java.lang.String,SmsSingleSearchResponse>- Parameters:
id- A RequestT representing input to the REST call to be made- Returns:
- A ResultT representing the response from the executed REST call
- Throws:
java.io.UnsupportedEncodingException- if UTF-8 encoding is not supported by the JVM
-
parseResponse
public SmsSingleSearchResponse parseResponse(org.apache.http.HttpResponse response) throws java.io.IOException
Description copied from class:AbstractMethodConstruct a ResultT representing the contents of the HTTP response returned from the Nexmo Voice API.- Specified by:
parseResponsein classAbstractMethod<java.lang.String,SmsSingleSearchResponse>- Parameters:
response- An HttpResponse returned from the Nexmo Voice API- Returns:
- A ResultT type representing the result of the REST call
- Throws:
java.io.IOException- if a problem occurs parsing the response
-
-