Class AbstractMethod<RequestT,ResultT>

java.lang.Object
com.vonage.client.AbstractMethod<RequestT,ResultT>
Type Parameters:
RequestT - The type of the method-specific request object that will be used to construct an HTTP request
ResultT - The type of method-specific response object which will be constructed from the returned HTTP response
All Implemented Interfaces:
RestEndpoint<RequestT,ResultT>
Direct Known Subclasses:
DynamicEndpoint

public abstract class AbstractMethod<RequestT,ResultT> extends Object implements RestEndpoint<RequestT,ResultT>
Abstract class to assist in implementing a call against a REST endpoint.

Concrete implementations must implement makeRequest(Object) to construct a RequestBuilder from the provided parameterized request object, and parseResponse(HttpResponse) to construct the parameterized HttpResponse object.

The REST call is executed by calling execute(Object).