Interface BodyInserter.Context
- Enclosing interface:
BodyInserter<T, M extends org.springframework.http.ReactiveHttpOutputMessage>
public static interface BodyInserter.Context
Defines the context used during the insertion.
- Since:
- 5.0
- Author:
- Arjen Poutsma
-
Method Summary
Modifier and TypeMethodDescriptionhints()Return the map of hints to use for response body conversion.List<org.springframework.http.codec.HttpMessageWriter<?>> Return theHttpMessageWritersto be used for response body conversion.Optional<org.springframework.http.server.reactive.ServerHttpRequest> Optionally return theServerHttpRequest, if present.
-
Method Details
-
messageWriters
List<org.springframework.http.codec.HttpMessageWriter<?>> messageWriters()Return theHttpMessageWritersto be used for response body conversion.- Returns:
- the stream of message writers
-
serverRequest
Optional<org.springframework.http.server.reactive.ServerHttpRequest> serverRequest()Optionally return theServerHttpRequest, if present. -
hints
-