public interface EndpointResponse<T>
| Modifier and Type | Method and Description |
|---|---|
T |
body() |
static <T> EndpointResponse<T> |
empty(com.github.ljtfreitas.restify.http.client.message.response.StatusCode statusCode) |
static <T> EndpointResponse<T> |
empty(com.github.ljtfreitas.restify.http.client.message.response.StatusCode statusCode,
com.github.ljtfreitas.restify.http.client.message.Headers headers) |
static <T> EndpointResponse<T> |
error(EndpointResponseException e) |
com.github.ljtfreitas.restify.http.client.message.Headers |
headers() |
static <T> EndpointResponse<T> |
of(com.github.ljtfreitas.restify.http.client.message.response.StatusCode statusCode,
T body) |
static <T> EndpointResponse<T> |
of(com.github.ljtfreitas.restify.http.client.message.response.StatusCode statusCode,
T body,
com.github.ljtfreitas.restify.http.client.message.Headers headers) |
<E extends EndpointResponseException> |
recover(java.lang.Class<? extends E> predicate,
java.util.function.Function<E,EndpointResponse<T>> mapper) |
EndpointResponse<T> |
recover(java.util.function.Function<EndpointResponseException,EndpointResponse<T>> mapper) |
EndpointResponse<T> |
recover(java.util.function.Predicate<EndpointResponseException> predicate,
java.util.function.Function<EndpointResponseException,EndpointResponse<T>> mapper) |
com.github.ljtfreitas.restify.http.client.message.response.StatusCode |
status() |
com.github.ljtfreitas.restify.http.client.message.Headers headers()
com.github.ljtfreitas.restify.http.client.message.response.StatusCode status()
T body()
EndpointResponse<T> recover(java.util.function.Function<EndpointResponseException,EndpointResponse<T>> mapper)
EndpointResponse<T> recover(java.util.function.Predicate<EndpointResponseException> predicate, java.util.function.Function<EndpointResponseException,EndpointResponse<T>> mapper)
<E extends EndpointResponseException> EndpointResponse<T> recover(java.lang.Class<? extends E> predicate, java.util.function.Function<E,EndpointResponse<T>> mapper)
static <T> EndpointResponse<T> of(com.github.ljtfreitas.restify.http.client.message.response.StatusCode statusCode, T body)
static <T> EndpointResponse<T> of(com.github.ljtfreitas.restify.http.client.message.response.StatusCode statusCode, T body, com.github.ljtfreitas.restify.http.client.message.Headers headers)
static <T> EndpointResponse<T> empty(com.github.ljtfreitas.restify.http.client.message.response.StatusCode statusCode)
static <T> EndpointResponse<T> empty(com.github.ljtfreitas.restify.http.client.message.response.StatusCode statusCode, com.github.ljtfreitas.restify.http.client.message.Headers headers)
static <T> EndpointResponse<T> error(EndpointResponseException e)
Copyright © 2019. All Rights Reserved.