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.
-
Method Summary
Modifier and TypeMethodDescriptionhints()
Return the map of hints to use for response body conversion.List<org.springframework.http.codec.HttpMessageWriter<?>>
Return theHttpMessageWriters
to 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 theHttpMessageWriters
to 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
Return the map of hints to use for response body conversion.
-