| Package | Description |
|---|---|
| org.springframework.web.reactive.function |
Provides a foundation for both the reactive client and server subpackages.
|
| 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. |
| org.springframework.web.reactive.function.server |
Provides the types that make up Spring's functional web framework.
|
| org.springframework.web.reactive.function.server.support |
Classes supporting the
org.springframework.web.reactive.function.server package. |
| Modifier and Type | Method and Description |
|---|---|
static BodyExtractor<reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer>,org.springframework.http.ReactiveHttpInputMessage> |
BodyExtractors.toDataBuffers()
Return a
BodyExtractor that returns the body of the message as a Flux of
DataBuffers. |
static <T> BodyExtractor<reactor.core.publisher.Flux<T>,org.springframework.http.ReactiveHttpInputMessage> |
BodyExtractors.toFlux(java.lang.Class<? extends T> elementClass)
Return a
BodyExtractor that reads into a Reactor Flux. |
static <T> BodyExtractor<reactor.core.publisher.Flux<T>,org.springframework.http.ReactiveHttpInputMessage> |
BodyExtractors.toFlux(org.springframework.core.ParameterizedTypeReference<T> typeReference)
Return a
BodyExtractor that reads into a Reactor Flux. |
static BodyExtractor<reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<java.lang.String,java.lang.String>>,org.springframework.http.server.reactive.ServerHttpRequest> |
BodyExtractors.toFormData()
Return a
BodyExtractor that reads form data into a MultiValueMap. |
static <T> BodyExtractor<reactor.core.publisher.Mono<T>,org.springframework.http.ReactiveHttpInputMessage> |
BodyExtractors.toMono(java.lang.Class<? extends T> elementClass)
Return a
BodyExtractor that reads into a Reactor Mono. |
static <T> BodyExtractor<reactor.core.publisher.Mono<T>,org.springframework.http.ReactiveHttpInputMessage> |
BodyExtractors.toMono(org.springframework.core.ParameterizedTypeReference<T> typeReference)
Return a
BodyExtractor that reads into a Reactor Mono. |
static BodyExtractor<reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<java.lang.String,org.springframework.http.codec.multipart.Part>>,org.springframework.http.server.reactive.ServerHttpRequest> |
BodyExtractors.toMultipartData()
Return a
BodyExtractor that reads multipart (i.e. |
static BodyExtractor<reactor.core.publisher.Flux<org.springframework.http.codec.multipart.Part>,org.springframework.http.server.reactive.ServerHttpRequest> |
BodyExtractors.toParts()
Return a
BodyExtractor that reads multipart (i.e. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
ClientResponse.body(BodyExtractor<T,? super org.springframework.http.client.reactive.ClientHttpResponse> extractor)
Extract the body with the given
BodyExtractor. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
ClientResponseWrapper.body(BodyExtractor<T,? super org.springframework.http.client.reactive.ClientHttpResponse> extractor) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
ServerRequest.body(BodyExtractor<T,? super org.springframework.http.server.reactive.ServerHttpRequest> extractor)
Extract the body with the given
BodyExtractor. |
<T> T |
ServerRequest.body(BodyExtractor<T,? super org.springframework.http.server.reactive.ServerHttpRequest> extractor,
java.util.Map<java.lang.String,java.lang.Object> hints)
Extract the body with the given
BodyExtractor and hints. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
ServerRequestWrapper.body(BodyExtractor<T,? super org.springframework.http.server.reactive.ServerHttpRequest> extractor) |
<T> T |
ServerRequestWrapper.body(BodyExtractor<T,? super org.springframework.http.server.reactive.ServerHttpRequest> extractor,
java.util.Map<java.lang.String,java.lang.Object> hints) |