public class DownloadRecordingEndpoint extends AbstractMethod<java.lang.String,Recording>
| Constructor and Description |
|---|
DownloadRecordingEndpoint(HttpWrapper httpWrapper) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Class[] |
getAcceptableAuthMethods() |
org.apache.http.client.methods.RequestBuilder |
makeRequest(java.lang.String uri)
Construct and return a RequestBuilder instance from the provided request.
|
Recording |
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 DownloadRecordingEndpoint(HttpWrapper httpWrapper)
public org.apache.http.client.methods.RequestBuilder makeRequest(java.lang.String uri) throws NexmoClientException, java.io.UnsupportedEncodingException
AbstractMethodmakeRequest in class AbstractMethod<java.lang.String,Recording>uri - 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<java.lang.String,Recording>public Recording parseResponse(org.apache.http.HttpResponse response) throws java.io.IOException
AbstractMethodparseResponse in class AbstractMethod<java.lang.String,Recording>response - An HttpResponse returned from the Nexmo Voice APIjava.io.IOException - if a problem occurs parsing the response