Package com.vonage.client.verify
Class Psd2Method
java.lang.Object
- All Implemented Interfaces:
Method<Psd2Request,VerifyResponse>
public class Psd2Method extends AbstractMethod<Psd2Request,VerifyResponse>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Psd2Method(HttpWrapper wrapper) -
Method Summary
Modifier and Type Method Description protected java.lang.Class[]getAcceptableAuthMethods()org.apache.http.client.methods.RequestBuildermakeRequest(Psd2Request request)Construct and return a RequestBuilder instance from the provided request.VerifyResponseparseResponse(org.apache.http.HttpResponse response)Construct a ResultT representing the contents of the HTTP response returned from the Vonage Voice API.Methods inherited from class com.vonage.client.AbstractMethod
applyAuth, execute, getAuthMethod, setHttpClient
-
Constructor Details
-
Method Details
-
getAcceptableAuthMethods
- Specified by:
getAcceptableAuthMethodsin classAbstractMethod<Psd2Request,VerifyResponse>
-
makeRequest
public org.apache.http.client.methods.RequestBuilder makeRequest(Psd2Request request) throws java.io.UnsupportedEncodingExceptionDescription copied from class:AbstractMethodConstruct and return a RequestBuilder instance from the provided request.- Specified by:
makeRequestin classAbstractMethod<Psd2Request,VerifyResponse>- 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 VerifyResponse parseResponse(org.apache.http.HttpResponse response) throws java.io.IOExceptionDescription copied from class:AbstractMethodConstruct a ResultT representing the contents of the HTTP response returned from the Vonage Voice API.- Specified by:
parseResponsein classAbstractMethod<Psd2Request,VerifyResponse>- Parameters:
response- An HttpResponse returned from the Vonage Voice API- Returns:
- A ResultT type representing the result of the REST call
- Throws:
java.io.IOException- if a problem occurs parsing the response
-