public abstract class BodyExtractors
extends java.lang.Object
BodyExtractor
implementations.Constructor and Description |
---|
BodyExtractors() |
Modifier and Type | Method and Description |
---|---|
static BodyExtractor<reactor.core.publisher.Flux<DataBuffer>,ReactiveHttpInputMessage> |
toDataBuffers()
Extractor that returns the raw
DataBuffers . |
static <T> BodyExtractor<reactor.core.publisher.Flux<T>,ReactiveHttpInputMessage> |
toFlux(java.lang.Class<? extends T> elementClass)
Extractor to decode the input content into
Flux<T> . |
static <T> BodyExtractor<reactor.core.publisher.Flux<T>,ReactiveHttpInputMessage> |
toFlux(ParameterizedTypeReference<T> typeRef)
Variant of
toFlux(Class) for type information with generics. |
static BodyExtractor<reactor.core.publisher.Mono<MultiValueMap<java.lang.String,java.lang.String>>,ReactiveHttpInputMessage> |
toFormData()
Extractor to read form data into
MultiValueMap<String, String> . |
static <T> BodyExtractor<reactor.core.publisher.Mono<T>,ReactiveHttpInputMessage> |
toMono(java.lang.Class<? extends T> elementClass)
Extractor to decode the input content into
Mono<T> . |
static <T> BodyExtractor<reactor.core.publisher.Mono<T>,ReactiveHttpInputMessage> |
toMono(ParameterizedTypeReference<T> typeRef)
Variant of
toMono(Class) for type information with generics. |
static BodyExtractor<reactor.core.publisher.Mono<MultiValueMap<java.lang.String,Part>>,ServerHttpRequest> |
toMultipartData()
Extractor to read multipart data into a
MultiValueMap<String, Part> . |
static BodyExtractor<reactor.core.publisher.Flux<Part>,ServerHttpRequest> |
toParts()
Extractor to read multipart data into
Flux<Part> . |
public static <T> BodyExtractor<reactor.core.publisher.Mono<T>,ReactiveHttpInputMessage> toMono(java.lang.Class<? extends T> elementClass)
Mono<T>
.T
- the element type to decode toelementClass
- the class of the element type to decode toBodyExtractor
for Mono<T>
public static <T> BodyExtractor<reactor.core.publisher.Mono<T>,ReactiveHttpInputMessage> toMono(ParameterizedTypeReference<T> typeRef)
toMono(Class)
for type information with generics.T
- the element type to decode totypeRef
- the type reference for the type to decode toBodyExtractor
for Mono<T>
public static <T> BodyExtractor<reactor.core.publisher.Flux<T>,ReactiveHttpInputMessage> toFlux(java.lang.Class<? extends T> elementClass)
Flux<T>
.T
- the element type to decode toelementClass
- the class of the element type to decode toBodyExtractor
for Flux<T>
public static <T> BodyExtractor<reactor.core.publisher.Flux<T>,ReactiveHttpInputMessage> toFlux(ParameterizedTypeReference<T> typeRef)
toFlux(Class)
for type information with generics.T
- the element type to decode totypeRef
- the type reference for the type to decode toBodyExtractor
for Flux<T>
public static BodyExtractor<reactor.core.publisher.Mono<MultiValueMap<java.lang.String,java.lang.String>>,ReactiveHttpInputMessage> toFormData()
MultiValueMap<String, String>
.
As of 5.1 this method can also be used on the client side to read form data from a server response (e.g. OAuth).
BodyExtractor
for form datapublic static BodyExtractor<reactor.core.publisher.Mono<MultiValueMap<java.lang.String,Part>>,ServerHttpRequest> toMultipartData()
MultiValueMap<String, Part>
.BodyExtractor
for multipart datapublic static BodyExtractor<reactor.core.publisher.Flux<Part>,ServerHttpRequest> toParts()
Flux<Part>
.BodyExtractor
for multipart request partspublic static BodyExtractor<reactor.core.publisher.Flux<DataBuffer>,ReactiveHttpInputMessage> toDataBuffers()
DataBuffers
.
Note: the data buffers should be
released
after being used.
BodyExtractor
for data buffers