Interface BodyInserter<T,M extends ReactiveHttpOutputMessage>
- Type Parameters:
T- the type of data to insertM- the type ofReactiveHttpOutputMessagethis inserter can be applied to
- All Known Subinterfaces:
BodyInserters.FormInserter<T>,BodyInserters.MultipartInserter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A combination of functions that can populate a
ReactiveHttpOutputMessage body.- Since:
- 5.0
- Author:
- Arjen Poutsma
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDefines the context used during the insertion. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>insert(M outputMessage, BodyInserter.Context context) Insert into the given output message.
-
Method Details
-
insert
Insert into the given output message.- Parameters:
outputMessage- the response to insert intocontext- the context to use- Returns:
- a
Monothat indicates completion or error
-