private static class DefaultWebClient.DefaultResponseSpec.StatusHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.function.BiFunction<ClientResponse,HttpRequest,<any>> |
exceptionFunction |
private java.util.function.Predicate<HttpStatus> |
predicate |
Constructor and Description |
---|
StatusHandler(java.util.function.Predicate<HttpStatus> predicate,
java.util.function.BiFunction<ClientResponse,HttpRequest,<any>> exceptionFunction) |
Modifier and Type | Method and Description |
---|---|
<any> |
apply(ClientResponse response,
HttpRequest request) |
boolean |
test(HttpStatus status) |
private final java.util.function.Predicate<HttpStatus> predicate
private final java.util.function.BiFunction<ClientResponse,HttpRequest,<any>> exceptionFunction
public StatusHandler(java.util.function.Predicate<HttpStatus> predicate, java.util.function.BiFunction<ClientResponse,HttpRequest,<any>> exceptionFunction)
public boolean test(HttpStatus status)
public <any> apply(ClientResponse response, HttpRequest request)