Uses of Interface
org.springframework.web.reactive.function.BodyInserter
Packages that use BodyInserter
Package
Description
Support for testing Spring WebFlux server endpoints via
WebTestClient
.Provides a foundation for both the reactive client and server subpackages.
Provides a reactive
WebClient
that builds on top of the
org.springframework.http.client.reactive
reactive HTTP adapter layer.Provides the types that make up Spring's functional web framework for Reactive environments.
-
Uses of BodyInserter in org.springframework.test.web.reactive.server
Methods in org.springframework.test.web.reactive.server with parameters of type BodyInserterModifier and TypeMethodDescriptionWebTestClient.RequestBodySpec.body
(BodyInserter<?, ? super ClientHttpRequest> inserter) Set the body of the request to the givenBodyInserter
. -
Uses of BodyInserter in org.springframework.web.reactive.function
Subinterfaces of BodyInserter in org.springframework.web.reactive.functionModifier and TypeInterfaceDescriptionstatic interface
Extension ofBodyInserter
that allows for adding form data or multipart form data.static interface
Extension ofBodyInserters.FormInserter
that allows for adding asynchronous parts.Methods in org.springframework.web.reactive.function that return BodyInserterModifier and TypeMethodDescriptionstatic <T> BodyInserter<T,
ReactiveHttpOutputMessage> BodyInserters.empty()
Inserter that does not write.static <T extends Publisher<DataBuffer>>
BodyInserter<T,ReactiveHttpOutputMessage> BodyInserters.fromDataBuffers
(T publisher) Inserter to write the givenPublisher<DataBuffer>
to the body.static <T> BodyInserter<T,
ReactiveHttpOutputMessage> BodyInserters.fromObject
(T body) Deprecated.static <T extends Publisher<DataBuffer>>
BodyInserter<T,ReactiveHttpOutputMessage> BodyInserters.fromOutputStream
(Consumer<OutputStream> outputStreamConsumer, Executor executor) Inserter based on bytes written to aOutputStream
.static <T extends Publisher<DataBuffer>>
BodyInserter<T,ReactiveHttpOutputMessage> BodyInserters.fromOutputStream
(Consumer<OutputStream> outputStreamConsumer, Executor executor, int chunkSize) Inserter based on bytes written to aOutputStream
.static <T> BodyInserter<T,
ReactiveHttpOutputMessage> BodyInserters.fromProducer
(T producer, Class<?> elementClass) Inserter to write the given producer of value(s) which must be aPublisher
or another producer adaptable to aPublisher
viaReactiveAdapterRegistry
.static <T> BodyInserter<T,
ReactiveHttpOutputMessage> BodyInserters.fromProducer
(T producer, ParameterizedTypeReference<?> elementTypeRef) Inserter to write the given producer of value(s) which must be aPublisher
or another producer adaptable to aPublisher
viaReactiveAdapterRegistry
.static <T,
P extends Publisher<T>>
BodyInserter<P,ReactiveHttpOutputMessage> BodyInserters.fromPublisher
(P publisher, Class<T> elementClass) Inserter to write the givenPublisher
.static <T,
P extends Publisher<T>>
BodyInserter<P,ReactiveHttpOutputMessage> BodyInserters.fromPublisher
(P publisher, ParameterizedTypeReference<T> elementTypeRef) Inserter to write the givenPublisher
.static <T extends Resource>
BodyInserter<T,ReactiveHttpOutputMessage> BodyInserters.fromResource
(T resource) Inserter to write the givenResource
.static <T,
S extends Publisher<ServerSentEvent<T>>>
BodyInserter<S,ServerHttpResponse> BodyInserters.fromServerSentEvents
(S eventsPublisher) Inserter to write the givenServerSentEvent
publisher.static <T> BodyInserter<T,
ReactiveHttpOutputMessage> BodyInserters.fromValue
(T body) Inserter to write the given value.static <T> BodyInserter<T,
ReactiveHttpOutputMessage> BodyInserters.fromValue
(T body, ParameterizedTypeReference<T> bodyType) Inserter to write the given value. -
Uses of BodyInserter in org.springframework.web.reactive.function.client
Methods in org.springframework.web.reactive.function.client that return BodyInserterModifier and TypeMethodDescriptionBodyInserter<?,
? super ClientHttpRequest> ClientRequest.body()
Return the body inserter of this request.Methods in org.springframework.web.reactive.function.client with parameters of type BodyInserterModifier and TypeMethodDescriptionClientRequest.Builder.body
(BodyInserter<?, ? super ClientHttpRequest> inserter) Set the body of the request to the givenBodyInserter
.WebClient.RequestBodySpec.body
(BodyInserter<?, ? super ClientHttpRequest> inserter) Set the body of the request using the given body inserter. -
Uses of BodyInserter in org.springframework.web.reactive.function.server
Methods in org.springframework.web.reactive.function.server that return BodyInserterModifier and TypeMethodDescriptionBodyInserter<T,
? super ServerHttpResponse> EntityResponse.inserter()
Return theBodyInserter
that writes the entity to the output stream.Methods in org.springframework.web.reactive.function.server with parameters of type BodyInserterModifier and TypeMethodDescriptionreactor.core.publisher.Mono<ServerResponse>
ServerResponse.BodyBuilder.body
(BodyInserter<?, ? super ServerHttpResponse> inserter) Set the body of the response to the givenBodyInserter
and return it.
BodyInserters.fromValue(Object)