public interface Interceptor
Future
rather
than be blockingModifier and Type | Method and Description |
---|---|
default boolean |
afterFailure(BasicBuilder builder,
HttpResponse<?> response)
Called after a websocket failure or by default from a normal request
|
default boolean |
afterFailure(HttpRequest.Builder builder,
HttpResponse<?> response)
Called after a non-websocket failure
|
default void |
before(BasicBuilder builder,
HttpHeaders headers)
Called before a request to allow for the manipulation of the request
|
default void before(BasicBuilder builder, HttpHeaders headers)
builder
- used to modify the requestheaders
- the current headersdefault boolean afterFailure(BasicBuilder builder, HttpResponse<?> response)
builder
- used to modify the requestresponse
- the failed responsedefault boolean afterFailure(HttpRequest.Builder builder, HttpResponse<?> response)
builder
- used to modify the requestresponse
- the failed responseCopyright © 2015–2022 Red Hat. All rights reserved.