private static class DefaultHandlerStrategiesBuilder.DefaultHandlerStrategies extends java.lang.Object implements HandlerStrategies
HandlerStrategies.Builder
Modifier and Type | Field and Description |
---|---|
private java.util.function.Function<ServerRequest,java.util.Optional<java.util.Locale>> |
localeResolver |
private java.util.List<HttpMessageReader<?>> |
messageReaders |
private java.util.List<HttpMessageWriter<?>> |
messageWriters |
private java.util.List<ViewResolver> |
viewResolvers |
Constructor and Description |
---|
DefaultHandlerStrategies(java.util.List<HttpMessageReader<?>> messageReaders,
java.util.List<HttpMessageWriter<?>> messageWriters,
java.util.List<ViewResolver> viewResolvers,
java.util.function.Function<ServerRequest,java.util.Optional<java.util.Locale>> localeResolver) |
Modifier and Type | Method and Description |
---|---|
java.util.function.Function<ServerRequest,java.util.Optional<java.util.Locale>> |
localeResolver()
Supply a function that resolves the locale of a given
ServerRequest . |
java.util.function.Supplier<java.util.stream.Stream<HttpMessageReader<?>>> |
messageReaders()
Supply a stream of
HttpMessageReader s to be used for request
body conversion. |
java.util.function.Supplier<java.util.stream.Stream<HttpMessageWriter<?>>> |
messageWriters()
Supply a stream of
HttpMessageWriter s to be used for response
body conversion. |
private static <T> java.util.List<T> |
unmodifiableCopy(java.util.List<? extends T> list) |
java.util.function.Supplier<java.util.stream.Stream<ViewResolver>> |
viewResolvers()
Supply a stream of
ViewResolver s to be used for view name
resolution. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
builder, builder, empty, of, withDefaults
private final java.util.List<HttpMessageReader<?>> messageReaders
private final java.util.List<HttpMessageWriter<?>> messageWriters
private final java.util.List<ViewResolver> viewResolvers
private final java.util.function.Function<ServerRequest,java.util.Optional<java.util.Locale>> localeResolver
public DefaultHandlerStrategies(java.util.List<HttpMessageReader<?>> messageReaders, java.util.List<HttpMessageWriter<?>> messageWriters, java.util.List<ViewResolver> viewResolvers, java.util.function.Function<ServerRequest,java.util.Optional<java.util.Locale>> localeResolver)
private static <T> java.util.List<T> unmodifiableCopy(java.util.List<? extends T> list)
public java.util.function.Supplier<java.util.stream.Stream<HttpMessageReader<?>>> messageReaders()
HandlerStrategies
HttpMessageReader
s to be used for request
body conversion.messageReaders
in interface HandlerStrategies
public java.util.function.Supplier<java.util.stream.Stream<HttpMessageWriter<?>>> messageWriters()
HandlerStrategies
HttpMessageWriter
s to be used for response
body conversion.messageWriters
in interface HandlerStrategies
public java.util.function.Supplier<java.util.stream.Stream<ViewResolver>> viewResolvers()
HandlerStrategies
ViewResolver
s to be used for view name
resolution.viewResolvers
in interface HandlerStrategies
public java.util.function.Function<ServerRequest,java.util.Optional<java.util.Locale>> localeResolver()
HandlerStrategies
ServerRequest
.localeResolver
in interface HandlerStrategies