spring-framework / org.springframework.web.reactive.config / WebFluxConfigurationSupport

WebFluxConfigurationSupport

open class WebFluxConfigurationSupport : ApplicationContextAware

The main class for Spring WebFlux configuration.

Import directly or extend and override protected methods to customize.

Author
Rossen Stoyanchev

Since
5.0

Constructors

<init>

WebFluxConfigurationSupport()

The main class for Spring WebFlux configuration.

Import directly or extend and override protected methods to customize.

Functions

configurePathMatching

open fun configurePathMatching(configurer: PathMatchConfigurer): Unit

Override to configure path matching options.

getApplicationContext

fun getApplicationContext(): ApplicationContext

handlerFunctionAdapter

open fun handlerFunctionAdapter(): HandlerFunctionAdapter

localeContextResolver

open fun localeContextResolver(): LocaleContextResolver

requestMappingHandlerAdapter

open fun requestMappingHandlerAdapter(): RequestMappingHandlerAdapter

requestMappingHandlerMapping

open fun requestMappingHandlerMapping(): RequestMappingHandlerMapping

resourceHandlerMapping

open fun resourceHandlerMapping(): HandlerMapping

Return a handler mapping ordered at Integer.MAX_VALUE-1 with mapped resource handlers. To configure resource handling, override #addResourceHandlers.

responseBodyResultHandler

open fun responseBodyResultHandler(): ResponseBodyResultHandler

responseEntityResultHandler

open fun responseEntityResultHandler(): ResponseEntityResultHandler

responseStatusExceptionHandler

open fun responseStatusExceptionHandler(): WebExceptionHandler

routerFunctionMapping

open fun routerFunctionMapping(): RouterFunctionMapping

serverCodecConfigurer

open fun serverCodecConfigurer(): ServerCodecConfigurer

Return the configurer for HTTP message readers and writers.

Use #configureHttpMessageCodecs(ServerCodecConfigurer) to configure the readers and writers.

serverResponseResultHandler

open fun serverResponseResultHandler(): ServerResponseResultHandler

setApplicationContext

open fun setApplicationContext(applicationContext: ApplicationContext): Unit

simpleHandlerAdapter

open fun simpleHandlerAdapter(): SimpleHandlerAdapter

viewResolutionResultHandler

open fun viewResolutionResultHandler(): ViewResolutionResultHandler

webFluxAdapterRegistry

open fun webFluxAdapterRegistry(): ReactiveAdapterRegistry

Return a ReactiveAdapterRegistry to adapting reactive types.

webFluxContentTypeResolver

open fun webFluxContentTypeResolver(): RequestedContentTypeResolver

webFluxConversionService

open fun webFluxConversionService(): FormattingConversionService

webFluxValidator

open fun webFluxValidator(): Validator

Return a global Validator instance for example for validating @RequestBody method arguments.

Delegates to #getValidator() first. If that returns null checks the classpath for the presence of a JSR-303 implementations before creating a OptionalValidatorFactoryBean. If a JSR-303 implementation is not available, a "no-op" Validator is returned.

webHandler

open fun webHandler(): DispatcherHandler