Uses of Interface
org.springframework.web.reactive.function.client.ClientResponse
Packages that use ClientResponse Package Description org.springframework.web.reactive.function.client Provides a reactiveWebClient
that builds on top of theorg.springframework.http.client.reactive
reactive HTTP adapter layer.org.springframework.web.reactive.function.client.support Classes supporting theorg.springframework.web.reactive.function.client
package.Uses of ClientResponse in org.springframework.web.reactive.function.client
Methods in org.springframework.web.reactive.function.client that return ClientResponse Modifier and Type Method Description ClientResponse
ClientResponse.Builder. build()
Build the response.Methods in org.springframework.web.reactive.function.client that return types with arguments of type ClientResponse Modifier and Type Method Description reactor.core.publisher.Mono<ClientResponse>
ExchangeFunction. exchange(ClientRequest request)
Exchange the given request for a response mono.reactor.core.publisher.Mono<ClientResponse>
WebClient.RequestHeadersSpec. exchange()
Perform the HTTP request and return aClientResponse
with the response status and headers.reactor.core.publisher.Mono<ClientResponse>
ExchangeFilterFunction. filter(ClientRequest request, ExchangeFunction next)
Apply this filter to the given request and exchange function.Methods in org.springframework.web.reactive.function.client with parameters of type ClientResponse Modifier and Type Method Description static ClientResponse.Builder
ClientResponse. from(ClientResponse other)
Create a builder with the status, headers, and cookies of the given response.Method parameters in org.springframework.web.reactive.function.client with type arguments of type ClientResponse Modifier and Type Method Description 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
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
.WebClient.ResponseSpec
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
WebClient.ResponseSpec. onStatus(Predicate<HttpStatus> 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 ExchangeFilterFunction
ExchangeFilterFunctions. statusError(Predicate<HttpStatus> statusPredicate, Function<ClientResponse,? extends Throwable> exceptionFunction)
Return a filter that generates an error signal when the givenHttpStatus
predicate matches.Uses of ClientResponse in org.springframework.web.reactive.function.client.support
Classes in org.springframework.web.reactive.function.client.support that implement ClientResponse Modifier and Type Class Description class
ClientResponseWrapper
Implementation of theClientResponse
interface that can be subclassed to adapt the request in aexchange filter function
.Methods in org.springframework.web.reactive.function.client.support that return ClientResponse Modifier and Type Method Description ClientResponse
ClientResponseWrapper. response()
Return the wrapped request.Constructors in org.springframework.web.reactive.function.client.support with parameters of type ClientResponse Constructor Description ClientResponseWrapper(ClientResponse delegate)
Create a newClientResponseWrapper
that wraps the given response.