Package com.nexmo.client.sms
Class SmsSearchEndpoint
- java.lang.Object
-
- com.nexmo.client.AbstractMethod<SearchSmsRequest,SearchSmsResponse>
-
- com.nexmo.client.sms.SmsSearchEndpoint
-
- All Implemented Interfaces:
Method<SearchSmsRequest,SearchSmsResponse>
public class SmsSearchEndpoint extends AbstractMethod<SearchSmsRequest,SearchSmsResponse>
-
-
Field Summary
-
Fields inherited from class com.nexmo.client.AbstractMethod
httpWrapper
-
-
Constructor Summary
Constructors Constructor Description SmsSearchEndpoint(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(SearchSmsRequest request)Construct and return a RequestBuilder instance from the provided request.SearchSmsResponseparseResponse(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
-
SmsSearchEndpoint
public SmsSearchEndpoint(HttpWrapper httpWrapper)
-
-
Method Detail
-
getAcceptableAuthMethods
protected java.lang.Class[] getAcceptableAuthMethods()
- Specified by:
getAcceptableAuthMethodsin classAbstractMethod<SearchSmsRequest,SearchSmsResponse>
-
makeRequest
public org.apache.http.client.methods.RequestBuilder makeRequest(SearchSmsRequest request) throws java.io.UnsupportedEncodingException
Description copied from class:AbstractMethodConstruct and return a RequestBuilder instance from the provided request.- Specified by:
makeRequestin classAbstractMethod<SearchSmsRequest,SearchSmsResponse>- Parameters:
request- 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 SearchSmsResponse 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<SearchSmsRequest,SearchSmsResponse>- 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
-
-