Top Description Fields Constructors Methods
org.springframework.web.reactive.config

public Class DelegatingWebFluxConfiguration

extends WebFluxConfigurationSupport
Class Inheritance
Annotations
@Configuration
proxyBeanMethods:false
Imports
java.util.List, org.springframework.beans.factory.annotation.Autowired, org.springframework.context.annotation.Configuration, org.springframework.format.FormatterRegistry, org.springframework.http.codec.ServerCodecConfigurer, org.springframework.util.CollectionUtils, org.springframework.validation.MessageCodesResolver, .Validator, org.springframework.web.reactive.accept.RequestedContentTypeResolverBuilder, org.springframework.web.reactive.result.method.annotation.ArgumentResolverConfigurer, org.springframework.web.reactive.socket.server.WebSocketService

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.
Author
Brian Clozel
Since
5.0

Field Summary

Modifier and TypeField and Description
private final WebFluxConfigurerComposite

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
addCorsMappings(CorsRegistry registry)

Overrides org.springframework.web.reactive.config.WebFluxConfigurationSupport.addCorsMappings.

Override this method to configure cross-origin requests processing.

protected void
protected void
addResourceHandlers(ResourceHandlerRegistry registry)

Overrides org.springframework.web.reactive.config.WebFluxConfigurationSupport.addResourceHandlers.

Override this method to add resource handlers for serving static resources.

protected void
protected void
protected void
protected void
public void
protected void
protected MessageCodesResolver
protected Validator
protected WebSocketService
public void
Inherited from org.springframework.web.reactive.config.WebFluxConfigurationSupport:
createLocaleContextResolvercreateRequestMappingHandlerAdaptercreateRequestMappingHandlerMappingcreateRouterFunctionMappinggetApplicationContextgetBlockingExecutionConfigurergetConfigurableWebBindingInitializergetCorsConfigurationsgetPathMatchConfigurergetViewResolverRegistryhandlerFunctionAdapterlocaleContextResolverrequestMappingHandlerAdapterrequestMappingHandlerMappingresourceHandlerMappingresourceUrlProviderresponseBodyResultHandlerresponseEntityResultHandlerresponseStatusExceptionHandlerrouterFunctionMappingserverCodecConfigurerserverResponseResultHandlersetApplicationContextsimpleHandlerAdapterviewResolutionResultHandlerwebFluxAdapterRegistrywebFluxContentTypeResolverwebFluxConversionServicewebFluxValidatorwebFluxWebSocketHandlerAdapterwebHandler

Field Detail

configurersback to summary
private final WebFluxConfigurerComposite configurers

Constructor Detail

DelegatingWebFluxConfigurationback to summary
public DelegatingWebFluxConfiguration()

Method Detail

addCorsMappingsback to summary
protected void addCorsMappings(CorsRegistry registry)

Overrides org.springframework.web.reactive.config.WebFluxConfigurationSupport.addCorsMappings.

Doc from org.springframework.web.reactive.config.WebFluxConfigurationSupport.addCorsMappings.

Override this method to configure cross-origin requests processing.

Annotations
@Override
addFormattersback to summary
protected void addFormatters(FormatterRegistry registry)

Overrides org.springframework.web.reactive.config.WebFluxConfigurationSupport.addFormatters.

Doc from org.springframework.web.reactive.config.WebFluxConfigurationSupport.addFormatters.

Override this method to add custom Converter and/or Formatter delegates to the common FormattingConversionService.

Annotations
@Override
addResourceHandlersback to summary
protected void addResourceHandlers(ResourceHandlerRegistry registry)

Overrides org.springframework.web.reactive.config.WebFluxConfigurationSupport.addResourceHandlers.

Doc from org.springframework.web.reactive.config.WebFluxConfigurationSupport.addResourceHandlers.

Override this method to add resource handlers for serving static resources.

Annotations
@Override
configureArgumentResolversback to summary
protected void configureArgumentResolvers(ArgumentResolverConfigurer configurer)

Overrides org.springframework.web.reactive.config.WebFluxConfigurationSupport.configureArgumentResolvers.

Doc from org.springframework.web.reactive.config.WebFluxConfigurationSupport.configureArgumentResolvers.

Configure resolvers for custom controller method arguments.

Annotations
@Override
configureBlockingExecutionback to summary
protected void configureBlockingExecution(BlockingExecutionConfigurer configurer)

Overrides org.springframework.web.reactive.config.WebFluxConfigurationSupport.configureBlockingExecution.

Doc from org.springframework.web.reactive.config.WebFluxConfigurationSupport.configureBlockingExecution.

Override this method to configure blocking execution.

Annotations
@Override
configureContentTypeResolverback to summary
protected void configureContentTypeResolver(RequestedContentTypeResolverBuilder builder)

Overrides org.springframework.web.reactive.config.WebFluxConfigurationSupport.configureContentTypeResolver.

Doc from org.springframework.web.reactive.config.WebFluxConfigurationSupport.configureContentTypeResolver.

Override to configure how the requested content type is resolved.

Annotations
@Override
configureHttpMessageCodecsback to summary
protected void configureHttpMessageCodecs(ServerCodecConfigurer configurer)

Overrides org.springframework.web.reactive.config.WebFluxConfigurationSupport.configureHttpMessageCodecs.

Doc from org.springframework.web.reactive.config.WebFluxConfigurationSupport.configureHttpMessageCodecs.

Override to configure the HTTP message readers and writers to use.

Annotations
@Override
configurePathMatchingback to summary
public void configurePathMatching(PathMatchConfigurer configurer)

Overrides org.springframework.web.reactive.config.WebFluxConfigurationSupport.configurePathMatching.

Doc from org.springframework.web.reactive.config.WebFluxConfigurationSupport.configurePathMatching.

Override to configure path matching options.

Annotations
@Override
configureViewResolversback to summary
protected void configureViewResolvers(ViewResolverRegistry registry)

Overrides org.springframework.web.reactive.config.WebFluxConfigurationSupport.configureViewResolvers.

Doc from org.springframework.web.reactive.config.WebFluxConfigurationSupport.configureViewResolvers.

Configure view resolution for supporting template engines.

Annotations
@Override
getMessageCodesResolverback to summary
protected MessageCodesResolver getMessageCodesResolver()

Overrides org.springframework.web.reactive.config.WebFluxConfigurationSupport.getMessageCodesResolver.

Doc from org.springframework.web.reactive.config.WebFluxConfigurationSupport.getMessageCodesResolver.

Override this method to provide a custom MessageCodesResolver.

Annotations
@Override
getValidatorback to summary
protected Validator getValidator()

Overrides org.springframework.web.reactive.config.WebFluxConfigurationSupport.getValidator.

Doc from org.springframework.web.reactive.config.WebFluxConfigurationSupport.getValidator.

Override this method to provide a custom Validator.

Annotations
@Override
getWebSocketServiceback to summary
protected WebSocketService getWebSocketService()

Overrides org.springframework.web.reactive.config.WebFluxConfigurationSupport.getWebSocketService.

Annotations
@Override
setConfigurersback to summary
public void setConfigurers(List<WebFluxConfigurer> configurers)
Annotations
@Autowired
required:false