| Package | Description |
|---|---|
| org.springframework.web.reactive.function.client |
Provides a reactive
WebClient
that builds on top of the
org.springframework.http.client.reactive reactive HTTP adapter layer. |
| Modifier and Type | Method and Description |
|---|---|
default ExchangeFilterFunction |
ExchangeFilterFunction.andThen(ExchangeFilterFunction after)
Return a composed filter function that first applies this filter, and then applies the
after filter. |
static ExchangeFilterFunction |
ExchangeFilterFunctions.basicAuthentication()
Return a filter that adds an Authorization header for HTTP Basic Authentication, based on
the
ExchangeFilterFunctions.Credentials provided in the
request attributes. |
static ExchangeFilterFunction |
ExchangeFilterFunctions.basicAuthentication(java.lang.String username,
java.lang.String password)
Return a filter that adds an Authorization header for HTTP Basic Authentication, based on
the given username and password.
|
static ExchangeFilterFunction |
ExchangeFilterFunction.ofRequestProcessor(java.util.function.Function<ClientRequest,reactor.core.publisher.Mono<ClientRequest>> requestProcessor)
Adapt the given request processor function to a filter function that only operates on the
ClientRequest. |
static ExchangeFilterFunction |
ExchangeFilterFunction.ofResponseProcessor(java.util.function.Function<ClientResponse,reactor.core.publisher.Mono<ClientResponse>> responseProcessor)
Adapt the given response processor function to a filter function that only operates on the
ClientResponse. |
static ExchangeFilterFunction |
ExchangeFilterFunctions.statusError(java.util.function.Predicate<org.springframework.http.HttpStatus> statusPredicate,
java.util.function.Function<ClientResponse,? extends java.lang.Throwable> exceptionFunction)
Return a filter that returns a given
Throwable as response if the given
HttpStatus predicate matches. |
| Modifier and Type | Method and Description |
|---|---|
default ExchangeFilterFunction |
ExchangeFilterFunction.andThen(ExchangeFilterFunction after)
Return a composed filter function that first applies this filter, and then applies the
after filter. |
WebClient.Builder |
WebClient.Builder.filter(ExchangeFilterFunction filter)
Add the given filter to the filter chain.
|
default ExchangeFunction |
ExchangeFunction.filter(ExchangeFilterFunction filter)
Filters this exchange function with the given
ExchangeFilterFunction, resulting in a
filtered ExchangeFunction. |
| Modifier and Type | Method and Description |
|---|---|
WebClient.Builder |
WebClient.Builder.filters(java.util.function.Consumer<java.util.List<ExchangeFilterFunction>> filtersConsumer)
Manipulate the filters with the given consumer.
|