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