DefaultRestClient and DefaultRestClientBuilder.
| Modifier and Type | Class and Description |
|---|---|
| private static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final RestClient. | |
| private final StatusHandler. |
| Access | Constructor and Description |
|---|---|
| private | StatusHandler(StatusHandler.
|
| Modifier and Type | Method and Description |
|---|---|
| public static StatusHandler | |
| public static StatusHandler | |
| private static String | |
| public void | |
| private static Function | initBodyConvertFunction(ClientHttpResponse response, byte[] body, List<HttpMessageConverter<?>> messageConverters)
|
| public static StatusHandler | |
| public boolean |
| errorHandler | back to summary |
|---|---|
| private final RestClient. | |
| predicate | back to summary |
|---|---|
| private final StatusHandler. | |
| StatusHandler | back to summary |
|---|---|
| private StatusHandler(StatusHandler. | |
| defaultHandler | back to summary |
|---|---|
| public static StatusHandler defaultHandler(List<HttpMessageConverter<?>> messageConverters) | |
| fromErrorHandler | back to summary |
|---|---|
| public static StatusHandler fromErrorHandler(ResponseErrorHandler errorHandler) | |
| getErrorMessage | back to summary |
|---|---|
| private static String getErrorMessage(int rawStatusCode, String statusText, byte[] responseBody, Charset charset) | |
| handle | back to summary |
|---|---|
| public void handle(HttpRequest request, ClientHttpResponse response) throws IOException | |
| initBodyConvertFunction | back to summary |
|---|---|
| private static Function | |
| of | back to summary |
|---|---|
| public static StatusHandler of(Predicate<HttpStatusCode> predicate, RestClient. | |
| test | back to summary |
|---|---|
| public boolean test(ClientHttpResponse response) throws IOException | |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| test | back to summary |
|---|---|
| public boolean test(ClientHttpResponse response) throws IOException | |