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

public Class WebFluxConfigurerComposite

extends Object
implements WebFluxConfigurer
Class Inheritance
All Implemented Interfaces
org.springframework.web.reactive.config.WebFluxConfigurer
Imports
java.util.ArrayList, .List, .Objects, java.util.function.Function, org.springframework.format.FormatterRegistry, org.springframework.http.codec.ServerCodecConfigurer, org.springframework.lang.Nullable, 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 WebFluxConfigurer that delegates to one or more others.
Authors
Brian Clozel, Rossen Stoyanchev
Since
5.0

Field Summary

Modifier and TypeField and Description
private final List<WebFluxConfigurer>

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.addCorsMappings.

Configure "global" cross-origin request processing.

public void
addFormatters(FormatterRegistry registry)

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.addFormatters.

Add custom Converters and Formatters for performing type conversion and formatting of annotated controller method arguments.

public void
addResourceHandlers(ResourceHandlerRegistry registry)

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.addResourceHandlers.

Add resource handlers for serving static resources.

public void
public void
configureArgumentResolvers(ArgumentResolverConfigurer
to configurer to use
configurer
)

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.configureArgumentResolvers.

Configure resolvers for custom @RequestMapping method arguments.

public void
configureBlockingExecution(BlockingExecutionConfigurer configurer)

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.configureBlockingExecution.

Configure settings related to blocking execution in WebFlux.

public void
configureContentTypeResolver(RequestedContentTypeResolverBuilder
for configuring the resolvers to use
builder
)

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.configureContentTypeResolver.

Configure how the content type requested for the response is resolved when handling requests with annotated controllers.

public void
configureHttpMessageCodecs(ServerCodecConfigurer
the configurer to customize readers and writers
configurer
)

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.configureHttpMessageCodecs.

Configure the HTTP message readers and writers for reading from the request body and for writing to the response body in annotated controllers and functional endpoints.

public void
public void
configureViewResolvers(ViewResolverRegistry registry)

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.configureViewResolvers.

Configure view resolution for rendering responses with a view and a model, where the view is typically an HTML template but could also be based on an HTTP message writer (e.g. JSON, XML).

private <T> T
public MessageCodesResolver
getMessageCodesResolver()

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.getMessageCodesResolver.

Provide a custom MessageCodesResolver to use for data binding in annotated controller method arguments instead of the one created by default in org.springframework.validation.DataBinder.

public Validator
public WebSocketService
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegatesback to summary
private final List<WebFluxConfigurer> delegates

Constructor Detail

WebFluxConfigurerCompositeback to summary
public WebFluxConfigurerComposite()

Method Detail

addCorsMappingsback to summary
public void addCorsMappings(CorsRegistry registry)

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.addCorsMappings.

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

Configure "global" cross-origin request processing. The configured CORS mappings apply to annotated controllers, functional endpoints, and static resources.

Annotated controllers can further declare more fine-grained config via @CrossOrigin. In such cases "global" CORS configuration declared here is combined with local CORS configuration defined on a controller method.

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

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.addFormatters.

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

Add custom Converters and Formatters for performing type conversion and formatting of annotated controller method arguments.

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

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.addResourceHandlers.

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

Add resource handlers for serving static resources.

Annotations
@Override
addWebFluxConfigurersback to summary
public void addWebFluxConfigurers(List<WebFluxConfigurer> configurers)
configureArgumentResolversback to summary
public void configureArgumentResolvers(ArgumentResolverConfigurer configurer)

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.configureArgumentResolvers.

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

Configure resolvers for custom @RequestMapping method arguments.

Parameters
configurer:ArgumentResolverConfigurer

to configurer to use

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

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.configureBlockingExecution.

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

Configure settings related to blocking execution in WebFlux.

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

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.configureContentTypeResolver.

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

Configure how the content type requested for the response is resolved when handling requests with annotated controllers.

Parameters
builder:RequestedContentTypeResolverBuilder

for configuring the resolvers to use

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

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.configureHttpMessageCodecs.

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

Configure the HTTP message readers and writers for reading from the request body and for writing to the response body in annotated controllers and functional endpoints.

By default, all built-in readers and writers are configured as long as the corresponding 3rd party libraries such Jackson JSON, JAXB2, and others are present on the classpath.

Parameters
configurer:ServerCodecConfigurer

the configurer to customize readers and writers

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

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.configurePathMatching.

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

Configure path matching options.

The configured path matching options will be used for mapping to annotated controllers and also static resources.

Parameters
configurer:PathMatchConfigurer

the PathMatchConfigurer instance

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

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.configureViewResolvers.

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

Configure view resolution for rendering responses with a view and a model, where the view is typically an HTML template but could also be based on an HTTP message writer (e.g. JSON, XML).

The configured view resolvers will be used for both annotated controllers and functional endpoints.

Annotations
@Override
createSingleBeanback to summary
private <T> T createSingleBean(Function<WebFluxConfigurer, T> factory, Class<T> beanType)
Annotations
@Nullable
getMessageCodesResolverback to summary
public MessageCodesResolver getMessageCodesResolver()

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.getMessageCodesResolver.

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

Provide a custom MessageCodesResolver to use for data binding in annotated controller method arguments instead of the one created by default in org.springframework.validation.DataBinder.

Annotations
@Override
getValidatorback to summary
public Validator getValidator()

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.getValidator.

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

Provide a custom Validator.

By default a validator for standard bean validation is created if bean validation API is present on the classpath.

The configured validator is used for validating annotated controller method arguments.

Annotations
@Override
getWebSocketServiceback to summary
public WebSocketService getWebSocketService()

Overrides default org.springframework.web.reactive.config.WebFluxConfigurer.getWebSocketService.

Doc from org.springframework.web.reactive.config.WebFluxConfigurer.getWebSocketService.

Provide the WebSocketService to create org.springframework.web.reactive.socket.server.support.WebSocketHandlerAdapter with. This can be used to configure server-specific properties through the org.springframework.web.reactive.socket.server.RequestUpgradeStrategy.

Annotations
@Nullable
@Override