public class WebFluxConfigurerComposite extends java.lang.Object implements WebFluxConfigurer
WebFluxConfigurer that delegates to one or more others.| Constructor and Description |
|---|
WebFluxConfigurerComposite() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCorsMappings(CorsRegistry registry)
Configure cross origin requests processing.
|
void |
addFormatters(FormatterRegistry registry)
|
void |
addResourceHandlers(ResourceHandlerRegistry registry)
Add resource handlers for serving static resources.
|
void |
addWebFluxConfigurers(java.util.List<WebFluxConfigurer> configurers) |
void |
configureArgumentResolvers(ArgumentResolverConfigurer configurer)
Configure resolvers for custom controller method arguments.
|
void |
configureContentTypeResolver(RequestedContentTypeResolverBuilder builder)
Configure how the content type requested for the response is resolved.
|
void |
configureHttpMessageCodecs(ServerCodecConfigurer configurer)
Configure custom HTTP message readers and writers or override built-in ones.
|
void |
configurePathMatching(PathMatchConfigurer configurer)
Configure path matching options.
|
void |
configureViewResolvers(ViewResolverRegistry registry)
Configure view resolution for processing the return values of controller
methods that rely on resolving a
View to render
the response with. |
MessageCodesResolver |
getMessageCodesResolver()
Provide a custom
MessageCodesResolver to use for data binding instead
of the one created by default in DataBinder. |
Validator |
getValidator()
Provide a custom
Validator. |
public void addWebFluxConfigurers(java.util.List<WebFluxConfigurer> configurers)
public void configureContentTypeResolver(RequestedContentTypeResolverBuilder builder)
WebFluxConfigurerconfigureContentTypeResolver in interface WebFluxConfigurerbuilder - for configuring the resolvers to usepublic void addCorsMappings(CorsRegistry registry)
WebFluxConfigureraddCorsMappings in interface WebFluxConfigurerCorsRegistrypublic void configurePathMatching(PathMatchConfigurer configurer)
WebFluxConfigurerHandlerMappings with path matching options.configurePathMatching in interface WebFluxConfigurerconfigurer - the PathMatchConfigurer instancepublic void addResourceHandlers(ResourceHandlerRegistry registry)
WebFluxConfigureraddResourceHandlers in interface WebFluxConfigurerResourceHandlerRegistrypublic void configureArgumentResolvers(ArgumentResolverConfigurer configurer)
WebFluxConfigurerconfigureArgumentResolvers in interface WebFluxConfigurerconfigurer - to configurer to usepublic void configureHttpMessageCodecs(ServerCodecConfigurer configurer)
WebFluxConfigurerconfigureHttpMessageCodecs in interface WebFluxConfigurerconfigurer - the configurer to usepublic void addFormatters(FormatterRegistry registry)
WebFluxConfigurerConverters and Formatters for performing type
conversion and formatting of controller method arguments.addFormatters in interface WebFluxConfigurerpublic Validator getValidator()
WebFluxConfigurerValidator.
By default a validator for standard bean validation is created if bean validation api is present on the classpath.
getValidator in interface WebFluxConfigurerpublic MessageCodesResolver getMessageCodesResolver()
WebFluxConfigurerMessageCodesResolver to use for data binding instead
of the one created by default in DataBinder.getMessageCodesResolver in interface WebFluxConfigurerpublic void configureViewResolvers(ViewResolverRegistry registry)
WebFluxConfigurerView to render
the response with. By default all controller methods rely on view
resolution unless annotated with @ResponseBody or explicitly
return ResponseEntity. A view may be specified explicitly with
a String return value or implicitly, e.g. void return value.configureViewResolvers in interface WebFluxConfigurerViewResolverRegistry