public class ReadCallMethod extends AbstractMethod<java.lang.String,CallInfo>
| Constructor and Description |
|---|
ReadCallMethod(HttpWrapper httpWrapper) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Class[] |
getAcceptableAuthMethods() |
java.lang.String |
getBaseUri() |
org.apache.http.client.methods.RequestBuilder |
makeRequest(java.lang.String callId)
Construct and return a RequestBuilder instance from the provided request.
|
CallInfo |
parseResponse(org.apache.http.HttpResponse response)
Construct a ResultT representing the contents of the HTTP response returned from the Nexmo Voice API.
|
void |
setBaseUri(java.lang.String baseUri) |
applyAuth, execute, getAuthMethod, setHttpClientpublic ReadCallMethod(HttpWrapper httpWrapper)
protected java.lang.Class[] getAcceptableAuthMethods()
getAcceptableAuthMethods in class AbstractMethod<java.lang.String,CallInfo>public org.apache.http.client.methods.RequestBuilder makeRequest(java.lang.String callId)
AbstractMethodmakeRequest in class AbstractMethod<java.lang.String,CallInfo>callId - A RequestT representing input to the REST call to be madepublic CallInfo parseResponse(org.apache.http.HttpResponse response) throws java.io.IOException
AbstractMethodparseResponse in class AbstractMethod<java.lang.String,CallInfo>response - An HttpResponse returned from the Nexmo Voice APIjava.io.IOException - if a problem occurs parsing the responsepublic void setBaseUri(java.lang.String baseUri)
public java.lang.String getBaseUri()