Package | Description |
---|---|
org.springframework.mock.web.reactive.function.server |
Mock objects for the functional web framework.
|
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 for Reactive environments.
|
org.springframework.web.reactive.function.server.support |
Classes supporting the
org.springframework.web.reactive.function.server package. |
Modifier and Type | Method and Description |
---|---|
<S> S |
MockServerRequest.body(BodyExtractor<S,? super ServerHttpRequest> extractor) |
<S> S |
MockServerRequest.body(BodyExtractor<S,? super ServerHttpRequest> extractor,
Map<String,Object> hints) |
Modifier and Type | Method and Description |
---|---|
static BodyExtractor<reactor.core.publisher.Flux<DataBuffer>,ReactiveHttpInputMessage> |
BodyExtractors.toDataBuffers()
Extractor that returns the raw
DataBuffers . |
static <T> BodyExtractor<reactor.core.publisher.Flux<T>,ReactiveHttpInputMessage> |
BodyExtractors.toFlux(Class<? extends T> elementClass)
Extractor to decode the input content into
Flux<T> . |
static <T> BodyExtractor<reactor.core.publisher.Flux<T>,ReactiveHttpInputMessage> |
BodyExtractors.toFlux(ParameterizedTypeReference<T> typeRef)
Variant of
BodyExtractors.toFlux(Class) for type information with generics. |
static BodyExtractor<reactor.core.publisher.Mono<MultiValueMap<String,String>>,ReactiveHttpInputMessage> |
BodyExtractors.toFormData()
Extractor to read form data into
MultiValueMap<String, String> . |
static <T> BodyExtractor<reactor.core.publisher.Mono<T>,ReactiveHttpInputMessage> |
BodyExtractors.toMono(Class<? extends T> elementClass)
Extractor to decode the input content into
Mono<T> . |
static <T> BodyExtractor<reactor.core.publisher.Mono<T>,ReactiveHttpInputMessage> |
BodyExtractors.toMono(ParameterizedTypeReference<T> elementTypeRef)
Variant of
BodyExtractors.toMono(Class) for type information with generics. |
static BodyExtractor<reactor.core.publisher.Mono<MultiValueMap<String,Part>>,ServerHttpRequest> |
BodyExtractors.toMultipartData()
Extractor to read multipart data into a
MultiValueMap<String, Part> . |
static BodyExtractor<reactor.core.publisher.Flux<Part>,ServerHttpRequest> |
BodyExtractors.toParts()
Extractor to read multipart data into
Flux<Part> . |
Modifier and Type | Method and Description |
---|---|
<T> T |
ClientResponse.body(BodyExtractor<T,? super ClientHttpResponse> extractor)
Extract the body with the given
BodyExtractor . |
<T> reactor.core.publisher.Mono<ResponseEntity<reactor.core.publisher.Flux<T>>> |
WebClient.ResponseSpec.toEntityFlux(BodyExtractor<reactor.core.publisher.Flux<T>,? super ClientHttpResponse> bodyExtractor)
Variant of
WebClient.ResponseSpec.toEntityFlux(Class) with a BodyExtractor . |
Modifier and Type | Method and Description |
---|---|
<T> T |
ClientResponseWrapper.body(BodyExtractor<T,? super ClientHttpResponse> extractor) |
Modifier and Type | Method and Description |
---|---|
<T> T |
ServerRequest.body(BodyExtractor<T,? super ServerHttpRequest> extractor)
Extract the body with the given
BodyExtractor . |
<T> T |
ServerRequest.body(BodyExtractor<T,? super ServerHttpRequest> extractor,
Map<String,Object> hints)
Extract the body with the given
BodyExtractor and hints. |
Modifier and Type | Method and Description |
---|---|
<T> T |
ServerRequestWrapper.body(BodyExtractor<T,? super ServerHttpRequest> extractor) |
<T> T |
ServerRequestWrapper.body(BodyExtractor<T,? super ServerHttpRequest> extractor,
Map<String,Object> hints) |