@Configuration(proxyBeanMethods=false) public class DelegatingWebFluxConfiguration extends WebFluxConfigurationSupport
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
.Constructor and Description |
---|
DelegatingWebFluxConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected void |
addCorsMappings(CorsRegistry registry)
Override this method to configure cross-origin requests processing.
|
protected void |
addFormatters(FormatterRegistry registry)
Override this method to add custom
Converter and/or Formatter
delegates to the common FormattingConversionService . |
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 |
configureContentTypeResolver(RequestedContentTypeResolverBuilder builder)
Override to configure how the requested content type is resolved.
|
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 MessageCodesResolver |
getMessageCodesResolver()
Override this method to provide a custom
MessageCodesResolver . |
protected Validator |
getValidator()
Override this method to provide a custom
Validator . |
protected WebSocketService |
getWebSocketService() |
void |
setConfigurers(List<WebFluxConfigurer> configurers) |
createLocaleContextResolver, createRequestMappingHandlerAdapter, createRequestMappingHandlerMapping, createRouterFunctionMapping, getApplicationContext, getConfigurableWebBindingInitializer, getCorsConfigurations, getPathMatchConfigurer, getViewResolverRegistry, handlerFunctionAdapter, localeContextResolver, requestMappingHandlerAdapter, requestMappingHandlerMapping, resourceHandlerMapping, resourceUrlProvider, responseBodyResultHandler, responseEntityResultHandler, responseStatusExceptionHandler, routerFunctionMapping, serverCodecConfigurer, serverResponseResultHandler, setApplicationContext, simpleHandlerAdapter, viewResolutionResultHandler, webFluxAdapterRegistry, webFluxContentTypeResolver, webFluxConversionService, webFluxValidator, webFluxWebSocketHandlerAdapter, webHandler
@Autowired(required=false) public void setConfigurers(List<WebFluxConfigurer> configurers)
protected void configureContentTypeResolver(RequestedContentTypeResolverBuilder builder)
WebFluxConfigurationSupport
configureContentTypeResolver
in class WebFluxConfigurationSupport
protected void addCorsMappings(CorsRegistry registry)
WebFluxConfigurationSupport
addCorsMappings
in class WebFluxConfigurationSupport
CorsRegistry
public void configurePathMatching(PathMatchConfigurer configurer)
WebFluxConfigurationSupport
configurePathMatching
in class WebFluxConfigurationSupport
protected void addResourceHandlers(ResourceHandlerRegistry registry)
WebFluxConfigurationSupport
addResourceHandlers
in class WebFluxConfigurationSupport
ResourceHandlerRegistry
protected void configureArgumentResolvers(ArgumentResolverConfigurer configurer)
WebFluxConfigurationSupport
configureArgumentResolvers
in class WebFluxConfigurationSupport
protected void configureHttpMessageCodecs(ServerCodecConfigurer configurer)
WebFluxConfigurationSupport
configureHttpMessageCodecs
in class WebFluxConfigurationSupport
protected void addFormatters(FormatterRegistry registry)
WebFluxConfigurationSupport
Converter
and/or Formatter
delegates to the common FormattingConversionService
.addFormatters
in class WebFluxConfigurationSupport
WebFluxConfigurationSupport.webFluxConversionService()
protected Validator getValidator()
WebFluxConfigurationSupport
Validator
.getValidator
in class WebFluxConfigurationSupport
protected MessageCodesResolver getMessageCodesResolver()
WebFluxConfigurationSupport
MessageCodesResolver
.getMessageCodesResolver
in class WebFluxConfigurationSupport
protected WebSocketService getWebSocketService()
getWebSocketService
in class WebFluxConfigurationSupport
protected void configureViewResolvers(ViewResolverRegistry registry)
WebFluxConfigurationSupport
configureViewResolvers
in class WebFluxConfigurationSupport
ViewResolverRegistry