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
Constructors -
Method summary
Modifier and TypeMethodDescriptionprotected voidaddCorsMappings(CorsRegistry registry) Override this method to configure cross-origin requests processing.protected voidaddFormatters(FormatterRegistry registry) Override this method to add customConverterand/orFormatterdelegates to the commonFormattingConversionservice.protected voidaddResourceHandlers(ResourceHandlerRegistry registry) Override this method to add resource handlers for serving static resources.protected voidconfigureApiVersioning(ApiVersionConfigurer configurer) Override this method to configure API versioning.protected voidconfigureArgumentResolvers(ArgumentResolverConfigurer configurer) Configure resolvers for custom controller method arguments.protected voidconfigureBlockingExecution(BlockingExecutionConfigurer configurer) Override this method to configure blocking execution.protected voidOverride to configure how the requested content type is resolved.protected voidconfigureErrorResponseInterceptors(List<ErrorResponse.Interceptor> interceptors) Override this method for control over theErrorResponse.Interceptor's to apply in result handling when rendering error responses.protected voidconfigureHttpMessageCodecs(serverCodecConfigurer configurer) Override to configure the HTTP message readers and writers to use.voidconfigurePathMatching(PathMatchConfigurer configurer) Override to configure path matching options.protected voidconfigureViewResolvers(ViewResolverRegistry registry) Configure view resolution for supporting template engines.protected @Nullable MessageCodesResolverOverride this method to provide a customMessageCodesResolver.Override this method to provide a customValidator.protected @Nullable Websocketservice voidsetConfigurers(List<WebFluxConfigurer> configurers) Methods inherited from class 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, webFluxApiVersionstrategy, webFluxContentTypeResolver, webFluxConversionservice, webFluxValidator, webFluxWebsocketHandlerAdapter, webHandler
-
Constructor Details
-
DelegatingWebFluxConfiguration
public DelegatingWebFluxConfiguration()
-
-
Method Details
-
setConfigurers
@Autowired(required=false) public void setConfigurers(List<WebFluxConfigurer> configurers) -
configureHttpMessageCodecs
Description copied from class: WebFluxConfigurationsupportOverride to configure the HTTP message readers and writers to use.- Overrides:
configureHttpMessageCodecs in class WebFluxConfigurationsupport
-
addFormatters
Description copied from class: WebFluxConfigurationsupportOverride this method to add customConverterand/orFormatterdelegates to the commonFormattingConversionservice.- Overrides:
addFormatters in class WebFluxConfigurationsupport- see Also:
-
getValidator
Description copied from class: WebFluxConfigurationsupportOverride this method to provide a customValidator.- Overrides:
getValidator in class WebFluxConfigurationsupport
-
getMessageCodesResolver
Description copied from class: WebFluxConfigurationsupportOverride this method to provide a customMessageCodesResolver.- Overrides:
getMessageCodesResolver in class WebFluxConfigurationsupport
-
addCorsMappings
Description copied from class: WebFluxConfigurationsupportOverride this method to configure cross-origin requests processing.- Overrides:
addCorsMappings in class WebFluxConfigurationsupport- see Also:
-
configureBlockingExecution
Description copied from class: WebFluxConfigurationsupportOverride this method to configure blocking execution.- Overrides:
configureBlockingExecution in class WebFluxConfigurationsupport
-
configureContentTypeResolver
protected void configureContentTypeResolver(RequestedContentTypeResolverBuilder builder) Description copied from class: WebFluxConfigurationsupportOverride to configure how the requested content type is resolved.- Overrides:
configureContentTypeResolver in class WebFluxConfigurationsupport
-
configureApiVersioning
Description copied from class: WebFluxConfigurationsupportOverride this method to configure API versioning.- Overrides:
configureApiVersioning in class WebFluxConfigurationsupport
-
configurePathMatching
Description copied from class: WebFluxConfigurationsupportOverride to configure path matching options.- Overrides:
configurePathMatching in class WebFluxConfigurationsupport
-
configureArgumentResolvers
Description copied from class: WebFluxConfigurationsupportConfigure resolvers for custom controller method arguments.- Overrides:
configureArgumentResolvers in class WebFluxConfigurationsupport
-
configureErrorResponseInterceptors
protected void configureErrorResponseInterceptors(List<ErrorResponse.Interceptor> interceptors) Description copied from class: WebFluxConfigurationsupportOverride this method for control over theErrorResponse.Interceptor's to apply in result handling when rendering error responses.- Overrides:
configureErrorResponseInterceptors in class WebFluxConfigurationsupport- Parameters:
interceptors- the list to add handlers to
-
addResourceHandlers
Description copied from class: WebFluxConfigurationsupportOverride this method to add resource handlers for serving static resources.- Overrides:
addResourceHandlers in class WebFluxConfigurationsupport- see Also:
-
configureViewResolvers
Description copied from class: WebFluxConfigurationsupportConfigure view resolution for supporting template engines.- Overrides:
configureViewResolvers in class WebFluxConfigurationsupport- see Also:
-
getWebsocketservice
- Overrides:
getWebsocketservice in class WebFluxConfigurationsupport
-