public interface HandlerStrategies
HandlerFunctions
. An instance of
this class is immutable; instances are typically created through the mutable HandlerStrategies.Builder
:
either through builder()
to set up default strategies, or empty()
to start from
scratch.RouterFunctions.toHttpHandler(RouterFunction, HandlerStrategies)
Modifier and Type | Interface and Description |
---|---|
static interface |
HandlerStrategies.Builder
A mutable builder for a
HandlerStrategies . |
Modifier and Type | Method and Description |
---|---|
static HandlerStrategies.Builder |
builder()
Return a mutable builder for a
HandlerStrategies with default initialization. |
static HandlerStrategies.Builder |
empty()
Return a mutable, empty builder for a
HandlerStrategies . |
java.util.List<WebExceptionHandler> |
exceptionHandlers()
Return the
WebExceptionHandlers to be used for handling exceptions. |
LocaleContextResolver |
localeContextResolver()
Return the
LocaleContextResolver to be used for resolving locale context. |
java.util.List<HttpMessageReader<?>> |
messageReaders()
Return the
HttpMessageReaders to be used for request body conversion. |
java.util.List<HttpMessageWriter<?>> |
messageWriters()
Return the
HttpMessageWriters to be used for response body conversion. |
java.util.List<ViewResolver> |
viewResolvers()
Return the
ViewResolvers to be used for view name resolution. |
java.util.List<WebFilter> |
webFilters()
Return the
WebFilters to be used for filtering the request and response. |
static HandlerStrategies |
withDefaults()
Return a new
HandlerStrategies with default initialization. |
java.util.List<HttpMessageReader<?>> messageReaders()
HttpMessageReaders
to be used for request body conversion.java.util.List<HttpMessageWriter<?>> messageWriters()
HttpMessageWriters
to be used for response body conversion.java.util.List<ViewResolver> viewResolvers()
ViewResolvers
to be used for view name resolution.java.util.List<WebFilter> webFilters()
WebFilters
to be used for filtering the request and response.java.util.List<WebExceptionHandler> exceptionHandlers()
WebExceptionHandlers
to be used for handling exceptions.LocaleContextResolver localeContextResolver()
LocaleContextResolver
to be used for resolving locale context.static HandlerStrategies withDefaults()
HandlerStrategies
with default initialization.HandlerStrategies
static HandlerStrategies.Builder builder()
HandlerStrategies
with default initialization.static HandlerStrategies.Builder empty()
HandlerStrategies
.