Class DelegatingWebFluxConfiguration
java.lang.Object
org.springframework.web.reactive.config.WebFluxConfigurationSupport
org.springframework.web.reactive.config.DelegatingWebFluxConfiguration
- All Implemented Interfaces:
Aware
,ApplicationContextAware
@Configuration(proxyBeanMethods=false)
public class DelegatingWebFluxConfiguration
extends WebFluxConfigurationSupport
A subclass of
WebFluxConfigurationSupport
that detects and delegates
to all beans of type WebFluxConfigurer
allowing them to customize the
configuration provided by WebFluxConfigurationSupport
. This is the
class actually imported by @EnableWebFlux
.- Since:
- 5.0
- Author:
- Brian Clozel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCorsMappings
(CorsRegistry registry) Override this method to configure cross-origin requests processing.protected void
addFormatters
(FormatterRegistry registry) Override this method to add customConverter
and/orFormatter
delegates to the commonFormattingConversionService
.protected void
addResourceHandlers
(ResourceHandlerRegistry registry) Override this method to add resource handlers for serving static resources.protected void
configureArgumentResolvers
(ArgumentResolverConfigurer configurer) Configure resolvers for custom controller method arguments.protected void
Override this method to configure blocking execution.protected void
Override to configure how the requested content type is resolved.protected void
configureErrorResponseInterceptors
(List<ErrorResponse.Interceptor> interceptors) Override this method for control over theErrorResponse.Interceptor
's to apply in result handling when rendering error responses.protected void
configureHttpMessageCodecs
(ServerCodecConfigurer configurer) Override to configure the HTTP message readers and writers to use.void
configurePathMatching
(PathMatchConfigurer configurer) Override to configure path matching options.protected void
configureViewResolvers
(ViewResolverRegistry registry) Configure view resolution for supporting template engines.protected @Nullable MessageCodesResolver
Override this method to provide a customMessageCodesResolver
.Override this method to provide a customValidator
.protected @Nullable WebSocketService
void
setConfigurers
(List<WebFluxConfigurer> configurers) Methods inherited from class org.springframework.web.reactive.config.WebFluxConfigurationSupport
createLocaleContextResolver, createRequestMappingHandlerAdapter, createRequestMappingHandlerMapping, createRouterFunctionMapping, getApplicationContext, getBlockingExecutionConfigurer, getConfigurableWebBindingInitializer, getCorsConfigurations, getErrorResponseInterceptors, getPathMatchConfigurer, getViewResolverRegistry, handlerFunctionAdapter, localeContextResolver, requestMappingHandlerAdapter, requestMappingHandlerMapping, resourceHandlerMapping, resourceUrlProvider, responseBodyResultHandler, responseEntityResultHandler, responseStatusExceptionHandler, routerFunctionMapping, serverCodecConfigurer, serverResponseResultHandler, setApplicationContext, simpleHandlerAdapter, viewResolutionResultHandler, webFluxAdapterRegistry, webFluxContentTypeResolver, webFluxConversionService, webFluxValidator, webFluxWebSocketHandlerAdapter, webHandler
-
Constructor Details
-
DelegatingWebFluxConfiguration
public DelegatingWebFluxConfiguration()
-
-
Method Details
-
setConfigurers
-
configureHttpMessageCodecs
Description copied from class:WebFluxConfigurationSupport
Override to configure the HTTP message readers and writers to use.- Overrides:
configureHttpMessageCodecs
in classWebFluxConfigurationSupport
-
addFormatters
Description copied from class:WebFluxConfigurationSupport
Override this method to add customConverter
and/orFormatter
delegates to the commonFormattingConversionService
.- Overrides:
addFormatters
in classWebFluxConfigurationSupport
- See Also:
-
getValidator
Description copied from class:WebFluxConfigurationSupport
Override this method to provide a customValidator
.- Overrides:
getValidator
in classWebFluxConfigurationSupport
-
getMessageCodesResolver
Description copied from class:WebFluxConfigurationSupport
Override this method to provide a customMessageCodesResolver
.- Overrides:
getMessageCodesResolver
in classWebFluxConfigurationSupport
-
addCorsMappings
Description copied from class:WebFluxConfigurationSupport
Override this method to configure cross-origin requests processing.- Overrides:
addCorsMappings
in classWebFluxConfigurationSupport
- See Also:
-
configureBlockingExecution
Description copied from class:WebFluxConfigurationSupport
Override this method to configure blocking execution.- Overrides:
configureBlockingExecution
in classWebFluxConfigurationSupport
-
configureContentTypeResolver
Description copied from class:WebFluxConfigurationSupport
Override to configure how the requested content type is resolved.- Overrides:
configureContentTypeResolver
in classWebFluxConfigurationSupport
-
configurePathMatching
Description copied from class:WebFluxConfigurationSupport
Override to configure path matching options.- Overrides:
configurePathMatching
in classWebFluxConfigurationSupport
-
configureArgumentResolvers
Description copied from class:WebFluxConfigurationSupport
Configure resolvers for custom controller method arguments.- Overrides:
configureArgumentResolvers
in classWebFluxConfigurationSupport
-
configureErrorResponseInterceptors
Description copied from class:WebFluxConfigurationSupport
Override this method for control over theErrorResponse.Interceptor
's to apply in result handling when rendering error responses.- Overrides:
configureErrorResponseInterceptors
in classWebFluxConfigurationSupport
- Parameters:
interceptors
- the list to add handlers to
-
addResourceHandlers
Description copied from class:WebFluxConfigurationSupport
Override this method to add resource handlers for serving static resources.- Overrides:
addResourceHandlers
in classWebFluxConfigurationSupport
- See Also:
-
configureViewResolvers
Description copied from class:WebFluxConfigurationSupport
Configure view resolution for supporting template engines.- Overrides:
configureViewResolvers
in classWebFluxConfigurationSupport
- See Also:
-
getWebSocketService
- Overrides:
getWebSocketService
in classWebFluxConfigurationSupport
-