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. |
org.springframework.web.reactive.function.client.support |
Classes supporting the
org.springframework.web.reactive.function.client package. |
Modifier and Type | Method and Description |
---|---|
ClientResponse |
ClientResponse.Builder.build()
Build the response.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<ClientResponse> |
WebClient.RequestHeadersSpec.exchange()
Perform the HTTP request and return a
ClientResponse with the
response status and headers. |
reactor.core.publisher.Mono<ClientResponse> |
ExchangeFunction.exchange(ClientRequest request)
Exchange the given request for a response mono.
|
reactor.core.publisher.Mono<ClientResponse> |
ExchangeFilterFunction.filter(ClientRequest request,
ExchangeFunction next)
Apply this filter to the given request and exchange function.
|
Modifier and Type | Method and Description |
---|---|
static ClientResponse.Builder |
ClientResponse.from(ClientResponse other)
Create a builder with the status, headers, and cookies of the given response.
|
Modifier and Type | Method and 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 the
ClientResponse . |
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 the
ClientResponse . |
WebClient.ResponseSpec |
WebClient.ResponseSpec.onRawStatus(IntPredicate statusCodePredicate,
Function<ClientResponse,reactor.core.publisher.Mono<? extends Throwable>> exceptionFunction)
Register a custom error function that gets invoked when the given raw status code
predicate applies.
|
WebClient.ResponseSpec |
WebClient.ResponseSpec.onStatus(Predicate<org.springframework.http.HttpStatus> statusPredicate,
Function<ClientResponse,reactor.core.publisher.Mono<? extends Throwable>> exceptionFunction)
Register a custom error function that gets invoked when the given
HttpStatus
predicate applies. |
static ExchangeFilterFunction |
ExchangeFilterFunctions.statusError(Predicate<org.springframework.http.HttpStatus> statusPredicate,
Function<ClientResponse,? extends Throwable> exceptionFunction)
Return a filter that generates an error signal when the given
HttpStatus predicate matches. |
Modifier and Type | Class and Description |
---|---|
class |
ClientResponseWrapper
Implementation of the
ClientResponse interface that can be subclassed
to adapt the request in a
exchange filter function . |
Modifier and Type | Method and Description |
---|---|
ClientResponse |
ClientResponseWrapper.response()
Return the wrapped request.
|
Constructor and Description |
---|
ClientResponseWrapper(ClientResponse delegate)
Create a new
ClientResponseWrapper that wraps the given response. |