static <T> ResponseProcessor<T> |
HttpUtils.checkResponse(ResponseProcessor<T> processor) |
Returns a ResponseProcessor that checks the HTTP status code to
determine whether a request was successful.
|
static <T> ResponseProcessor<T> |
HttpUtils.checkResponse(ResponseProcessor<T> processor,
String tag) |
Returns a ResponseProcessor that checks the HTTP status code to
determine whether a request was successful and allows tagging the
request.
|
static <T> ResponseProcessor<T> |
HttpUtils.checkResponse(ResponseProcessor<T> processor,
Predicate<Response> successPredicate) |
Returns a ResponseProcessor that checks whether a request was
successful based on a given predicate.
|
static <T> ResponseProcessor<T> |
HttpUtils.checkResponse(ResponseProcessor<T> processor,
Predicate<Response> successPredicate,
String tag) |
Returns a ResponseProcessor that checks whether a request was
successful based on a given predicate and allows tagging the request.
|
static <T> ResponseProcessor<T> |
HttpUtils.jsonResult(com.fasterxml.jackson.databind.ObjectMapper mapper,
com.fasterxml.jackson.core.type.TypeReference<T> typeReference) |
Returns a ResponseProcessor that uses the ObjectMapper
specified to map the JSON payload of a response to an object of the
type defined by the given reference.
|
static <T> ResponseProcessor<T> |
HttpUtils.jsonResult(com.fasterxml.jackson.databind.ObjectMapper mapper,
Class<T> resultClass) |
Returns a ResponseProcessor that uses the ObjectMapper
specified to map the JSON payload of a response to an object of the
given result class.
|
static <T> ResponseProcessor<T> |
HttpUtils.jsonResultNew(com.fasterxml.jackson.databind.ObjectMapper mapper,
Class<T> resultClass) |
Returns a ResponseProcessor that uses the ObjectMapper
specified to map the JSON payload of a response to an object of the
given result class.
|
static <T> ResponseProcessor<T> |
HttpUtils.nullProcessor() |
Returns a special ResponseProcessor that does not do any
processing, but just returns the value null.
|