public static interface HandlerStrategies.Builder
HandlerStrategies
.Modifier and Type | Method and Description |
---|---|
HandlerStrategies |
build()
Builds the
HandlerStrategies . |
HandlerStrategies.Builder |
localeResolver(java.util.function.Function<ServerRequest,java.util.Optional<java.util.Locale>> localeResolver)
Set the given function as
Locale resolver for this builder. |
HandlerStrategies.Builder |
messageReader(HttpMessageReader<?> messageReader)
Add the given message reader to this builder.
|
HandlerStrategies.Builder |
messageWriter(HttpMessageWriter<?> messageWriter)
Add the given message writer to this builder.
|
HandlerStrategies.Builder |
viewResolver(ViewResolver viewResolver)
Add the given view resolver to this builder.
|
HandlerStrategies.Builder messageReader(HttpMessageReader<?> messageReader)
messageReader
- the message reader to addHandlerStrategies.Builder messageWriter(HttpMessageWriter<?> messageWriter)
messageWriter
- the message writer to addHandlerStrategies.Builder viewResolver(ViewResolver viewResolver)
viewResolver
- the view resolver to addHandlerStrategies.Builder localeResolver(java.util.function.Function<ServerRequest,java.util.Optional<java.util.Locale>> localeResolver)
Locale
resolver for this builder.localeResolver
- the locale resolver to setHandlerStrategies build()
HandlerStrategies
.