Uses of Interface
org.springframework.web.reactive.function.client.ExchangeFilterFunction
Package
Description
Support for testing Spring WebFlux server endpoints via
WebTestClient
.Provides a reactive
WebClient
that builds on top of the
org.springframework.http.client.reactive
reactive HTTP adapter layer.-
Uses of ExchangeFilterFunction in org.springframework.test.web.reactive.server
Modifier and TypeMethodDescriptionWebTestClient.Builder.filter
(ExchangeFilterFunction filter) Add the given filter to the filter chain.Modifier and TypeMethodDescriptionWebTestClient.Builder.filters
(Consumer<List<ExchangeFilterFunction>> filtersConsumer) Manipulate the filters with the given consumer. -
Uses of ExchangeFilterFunction in org.springframework.web.reactive.function.client
Modifier and TypeMethodDescriptiondefault ExchangeFilterFunction
ExchangeFilterFunction.andThen
(ExchangeFilterFunction afterFilter) Return a composed filter function that first applies this filter and then applies the givenafterFilter
.static ExchangeFilterFunction
ExchangeFilterFunctions.basicAuthentication()
Deprecated.static ExchangeFilterFunction
ExchangeFilterFunctions.basicAuthentication
(String username, String password) Return a filter that applies HTTP Basic Authentication to the request headers viaHttpHeaders.setBasicAuth(String)
andHttpHeaders.encodeBasicAuth(String, String, Charset)
.static ExchangeFilterFunction
ExchangeFilterFunctions.limitResponseSize
(long maxByteCount) Consume up to the specified number of bytes from the response body and cancel if any more data arrives.static ExchangeFilterFunction
ExchangeFilterFunction.ofRequestProcessor
(Function<ClientRequest, reactor.core.publisher.Mono<ClientRequest>> processor) Adapt the given request processor function to a filter function that only operates on theClientRequest
.static ExchangeFilterFunction
ExchangeFilterFunction.ofResponseProcessor
(Function<ClientResponse, reactor.core.publisher.Mono<ClientResponse>> processor) Adapt the given response processor function to a filter function that only operates on theClientResponse
.static ExchangeFilterFunction
ExchangeFilterFunctions.statusError
(Predicate<HttpStatusCode> statusPredicate, Function<ClientResponse, ? extends Throwable> exceptionFunction) Return a filter that generates an error signal when the givenHttpStatusCode
predicate matches.Modifier and TypeMethodDescriptiondefault ExchangeFilterFunction
ExchangeFilterFunction.andThen
(ExchangeFilterFunction afterFilter) Return a composed filter function that first applies this filter and then applies the givenafterFilter
.default ExchangeFunction
ExchangeFunction.filter
(ExchangeFilterFunction filter) Filter the exchange function with the givenExchangeFilterFunction
, resulting in a filteredExchangeFunction
.WebClient.Builder.filter
(ExchangeFilterFunction filter) Add the given filter to the end of the filter chain.Modifier and TypeMethodDescriptionWebClient.Builder.filters
(Consumer<List<ExchangeFilterFunction>> filtersConsumer) Manipulate the filters with the given consumer.
HttpHeaders.setBasicAuth(String, String)
while building the request.