Uses of Interface
org.springframework.web.reactive.function.client.ExchangeFilterFunction
Packages that use 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
Methods in org.springframework.test.web.reactive.server with parameters of type ExchangeFilterFunctionModifier and TypeMethodDescriptionWebTestClient.Builder.filter(ExchangeFilterFunction filter) Add the given filter to the filter chain.Method parameters in org.springframework.test.web.reactive.server with type arguments of type ExchangeFilterFunctionModifier 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
Methods in org.springframework.web.reactive.function.client that return ExchangeFilterFunctionModifier and TypeMethodDescriptiondefault ExchangeFilterFunctionExchangeFilterFunction.andThen(ExchangeFilterFunction afterFilter) Return a composed filter function that first applies this filter, and then applies the given"after"filter.static ExchangeFilterFunctionExchangeFilterFunctions.basicAuthentication()Deprecated.static ExchangeFilterFunctionExchangeFilterFunctions.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 ExchangeFilterFunctionExchangeFilterFunctions.limitResponseSize(long maxByteCount) Consume up to the specified number of bytes from the response body and cancel if any more data arrives.static ExchangeFilterFunctionExchangeFilterFunction.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 ExchangeFilterFunctionExchangeFilterFunction.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 ExchangeFilterFunctionExchangeFilterFunctions.statusError(Predicate<HttpStatus> statusPredicate, Function<ClientResponse, ? extends Throwable> exceptionFunction) Return a filter that generates an error signal when the givenHttpStatuspredicate matches.Methods in org.springframework.web.reactive.function.client with parameters of type ExchangeFilterFunctionModifier and TypeMethodDescriptiondefault ExchangeFilterFunctionExchangeFilterFunction.andThen(ExchangeFilterFunction afterFilter) Return a composed filter function that first applies this filter, and then applies the given"after"filter.default ExchangeFunctionExchangeFunction.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.Method parameters in org.springframework.web.reactive.function.client with type arguments of type ExchangeFilterFunctionModifier and TypeMethodDescriptionWebClient.Builder.filters(Consumer<List<ExchangeFilterFunction>> filtersConsumer) Manipulate the filters with the given consumer.
HttpHeaders.setBasicAuth(String, String)while building the request.