public interface HttpAuthClient<T>
| Modifier and Type | Method and Description |
|---|---|
HttpResponse<T> |
execute(Request request,
ExecutionContext context)
Executes the request and return the response.
|
<V> V |
execute(Request request,
HttpResponseHandler<ApiServiceResponse<V>> responseHandler,
HttpResponseHandler<AuthServiceException> errorResponseHandler,
ExecutionContext context)
Executes the request and return the response.
|
void |
shutdown()
Shuts down and releases the connection to server.
|
HttpResponse<T> execute(Request request, ExecutionContext context) throws AuthClientException
request - the request to send to the server.context - Additional information about the context of this web
service call.AuthClientException - if an error occurs during executing the request.AuthServiceException - if an error occurs during executing the request.<V> V execute(Request request, HttpResponseHandler<ApiServiceResponse<V>> responseHandler, HttpResponseHandler<AuthServiceException> errorResponseHandler, ExecutionContext context) throws AuthClientException
request - the request to send to server.responseHandler - the response handler to accept a successful response
from the remote server.errorResponseHandler - A response handler to accept an unsuccessful
response from the remote server.context - Additional information about the context of this web service
call.AuthClientException - if an error occurs during executing the request.AuthServiceException - if an error occurs during executing the request.void shutdown()