Uses of Interface
org.springframework.web.reactive.function.client.ClientResponse
Packages that use ClientResponse
Package
Description
Provides a reactive
WebClient
that builds on top of the
org.springframework.http.client.reactive reactive HTTP adapter layer.Classes supporting the
org.springframework.web.reactive.function.client package.-
Uses of ClientResponse in org.springframework.web.reactive.function.client
Subclasses with type arguments of type ClientResponse in org.springframework.web.reactive.function.clientModifier and TypeClassDescriptionclassContext that holds information for metadata collection during theHTTP client exchange observations.Methods in org.springframework.web.reactive.function.client that return ClientResponseMethods in org.springframework.web.reactive.function.client that return types with arguments of type ClientResponseModifier and TypeMethodDescriptionreactor.core.publisher.Mono<ClientResponse> ExchangeFunction.exchange(ClientRequest request) Exchange the given request for aClientResponsepromise.reactor.core.publisher.Mono<ClientResponse> ExchangeFilterFunction.filter(ClientRequest request, ExchangeFunction next) Apply this filter to the given request and exchange function.Method parameters in org.springframework.web.reactive.function.client with type arguments of type ClientResponseModifier and TypeMethodDescriptionWebClient.Builder.defaultStatusHandler(Predicate<HttpStatusCode> statusPredicate, Function<ClientResponse, reactor.core.publisher.Mono<? extends Throwable>> exceptionFunction) Register a defaultstatus handlerto apply to every response.<V> reactor.core.publisher.Flux<V> WebClient.RequestHeadersSpec.exchangeToFlux(Function<ClientResponse, ? extends reactor.core.publisher.Flux<V>> responseHandler) An alternative toWebClient.RequestHeadersSpec.retrieve()that provides more control via access to theClientResponse.<V> reactor.core.publisher.Mono<V> WebClient.RequestHeadersSpec.exchangeToMono(Function<ClientResponse, ? extends reactor.core.publisher.Mono<V>> responseHandler) An alternative toWebClient.RequestHeadersSpec.retrieve()that provides more control via access to theClientResponse.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 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.WebClient.ResponseSpec.onRawStatus(IntPredicate statusCodePredicate, Function<ClientResponse, reactor.core.publisher.Mono<? extends Throwable>> exceptionFunction) Variant ofWebClient.ResponseSpec.onStatus(Predicate, Function)that works with raw status code values.WebClient.ResponseSpec.onStatus(Predicate<HttpStatusCode> statusPredicate, Function<ClientResponse, reactor.core.publisher.Mono<? extends Throwable>> exceptionFunction) Provide a function to map specific error status codes to an error signal to be propagated downstream instead of the response.static ExchangeFilterFunctionExchangeFilterFunctions.statusError(Predicate<HttpStatusCode> statusPredicate, Function<ClientResponse, ? extends Throwable> exceptionFunction) Return a filter that generates an error signal when the givenHttpStatusCodepredicate matches. -
Uses of ClientResponse in org.springframework.web.reactive.function.client.support
Classes in org.springframework.web.reactive.function.client.support that implement ClientResponseModifier and TypeClassDescriptionclassImplementation of theClientResponseinterface that can be subclassed to adapt the request in aexchange filter function.Methods in org.springframework.web.reactive.function.client.support that return ClientResponseConstructors in org.springframework.web.reactive.function.client.support with parameters of type ClientResponseModifierConstructorDescriptionClientResponseWrapper(ClientResponse delegate) Create a newClientResponseWrapperthat wraps the given response.