HandlerFunctions.
An instance of this class is immutable. Instances are typically created through the
mutable Builder: either through builder() to set up default strategies,
or empty() to start from scratch.
RouterFunctions#toHttpHandler(RouterFunction, HandlerStrategies)
| Modifier and Type | Class and Description |
|---|---|
| public static interface | HandlerStrategies.
A mutable builder for a |
| Modifier and Type | Method and Description |
|---|---|
| public static HandlerStrategies. | Returns: the builderReturn a mutable builder for a |
| public static HandlerStrategies. | |
| public List | Returns: the exception handlersReturn the |
| public LocaleContextResolver | Returns: the locale context resolverReturn the |
| public List | Returns: the message readersReturn the |
| public List | Returns: the message writersReturn the |
| public List | Returns: the view resolversReturn the |
| public List | Returns: the web filtersReturn the |
| public static HandlerStrategies | Returns: the newHandlerStrategiesReturn a new |
| builder | back to summary |
|---|---|
| public static HandlerStrategies. Return a mutable builder for a
| |
| empty | back to summary |
|---|---|
| public static HandlerStrategies. Return a mutable, empty builder for a
| |
| exceptionHandlers | back to summary |
|---|---|
| public List Return the
| |
| localeContextResolver | back to summary |
|---|---|
| public LocaleContextResolver localeContextResolver() Return the
| |
| messageReaders | back to summary |
|---|---|
| public List Return the
| |
| messageWriters | back to summary |
|---|---|
| public List Return the
| |
| viewResolvers | back to summary |
|---|---|
| public List Return the
| |
| webFilters | back to summary |
|---|---|
| public List Return the | |
| withDefaults | back to summary |
|---|---|
| public static HandlerStrategies withDefaults() Return a new
| |
HandlerStrategies.
| Modifier and Type | Method and Description |
|---|---|
| public HandlerStrategies | |
| public HandlerStrategies. | Returns: this builderthe consumer to customize the codecs consumer)Customize the list of server-side HTTP message readers and writers. |
| public HandlerStrategies. | Returns: this builderthe exception handler to add exceptionHandler)Add the given exception handler to this builder. |
| public HandlerStrategies. | Returns: this builderthe locale context resolver to add localeContextResolver)Add the given locale context resolver to this builder. |
| public HandlerStrategies. | Returns: this builderthe view resolver to add viewResolver)Add the given view resolver to this builder. |
| public HandlerStrategies. |
| build | back to summary |
|---|---|
| public HandlerStrategies build() Builds the
| |
| codecs | back to summary |
|---|---|
| public HandlerStrategies. Customize the list of server-side HTTP message readers and writers.
| |
| exceptionHandler | back to summary |
|---|---|
| public HandlerStrategies. Add the given exception handler to this builder.
| |
| localeContextResolver | back to summary |
|---|---|
| public HandlerStrategies. Add the given locale context resolver to this builder.
| |
| viewResolver | back to summary |
|---|---|
| public HandlerStrategies. Add the given view resolver to this builder.
| |
| webFilter | back to summary |
|---|---|
| public HandlerStrategies. Add the given web filter to this builder.
| |