Interface ServerResponse.Context
- Enclosing interface:
- ServerResponse
public static interface ServerResponse.Context
Defines the context used during the
ServerResponse.writeTo(ServerWebExchange, Context)
.-
Method Summary
Modifier and TypeMethodDescriptionReturn theHttpMessageWriters
to be used for response body conversion.Return theViewResolvers
to be used for view name resolution.
-
Method Details
-
messageWriters
List<HttpMessageWriter<?>> messageWriters()Return theHttpMessageWriters
to be used for response body conversion.- Returns:
- the list of message writers
-
viewResolvers
List<ViewResolver> viewResolvers()Return theViewResolvers
to be used for view name resolution.- Returns:
- the list of view resolvers
-