Package org.springdoc.webmvc.ui
Class SwaggerWebMvcConfigurer
- java.lang.Object
-
- org.springdoc.webmvc.ui.SwaggerWebMvcConfigurer
-
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public class SwaggerWebMvcConfigurer extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
The type Swagger web mvc configurer.- Author:
- bnasslahsen
-
-
Constructor Summary
Constructors Constructor Description SwaggerWebMvcConfigurer(org.springdoc.core.SwaggerUiConfigParameters swaggerUiConfigParameters, SwaggerIndexTransformer swaggerIndexTransformer, Optional<org.springdoc.core.providers.ActuatorProvider> actuatorProvider)
Instantiates a new Swagger web mvc configurer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers)
void
addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry)
void
addFormatters(org.springframework.format.FormatterRegistry registry)
void
addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
void
addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
void
addReturnValueHandlers(List<org.springframework.web.method.support.HandlerMethodReturnValueHandler> returnValueHandlers)
void
addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)
void
configureAsyncSupport(org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer configurer)
void
configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
void
configureDefaultServletHandling(org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer configurer)
void
configureHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers)
void
configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
void
configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer)
void
configureViewResolvers(org.springframework.web.servlet.config.annotation.ViewResolverRegistry registry)
void
extendHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers)
void
extendMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
org.springframework.validation.MessageCodesResolver
getMessageCodesResolver()
org.springframework.validation.Validator
getValidator()
-
-
-
Constructor Detail
-
SwaggerWebMvcConfigurer
public SwaggerWebMvcConfigurer(org.springdoc.core.SwaggerUiConfigParameters swaggerUiConfigParameters, SwaggerIndexTransformer swaggerIndexTransformer, Optional<org.springdoc.core.providers.ActuatorProvider> actuatorProvider)
Instantiates a new Swagger web mvc configurer.- Parameters:
swaggerUiConfigParameters
- the swagger ui calculated configswaggerIndexTransformer
- the swagger index transformeractuatorProvider
- the actuator provider
-
-
Method Detail
-
addResourceHandlers
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
- Specified by:
addResourceHandlers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configurePathMatch
public void configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer)
- Specified by:
configurePathMatch
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configureContentNegotiation
public void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
- Specified by:
configureContentNegotiation
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configureAsyncSupport
public void configureAsyncSupport(org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer configurer)
- Specified by:
configureAsyncSupport
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configureDefaultServletHandling
public void configureDefaultServletHandling(org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer configurer)
- Specified by:
configureDefaultServletHandling
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addFormatters
public void addFormatters(org.springframework.format.FormatterRegistry registry)
- Specified by:
addFormatters
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
- Specified by:
addInterceptors
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addCorsMappings
public void addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry)
- Specified by:
addCorsMappings
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addViewControllers
public void addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)
- Specified by:
addViewControllers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configureViewResolvers
public void configureViewResolvers(org.springframework.web.servlet.config.annotation.ViewResolverRegistry registry)
- Specified by:
configureViewResolvers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addArgumentResolvers
public void addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers)
- Specified by:
addArgumentResolvers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addReturnValueHandlers
public void addReturnValueHandlers(List<org.springframework.web.method.support.HandlerMethodReturnValueHandler> returnValueHandlers)
- Specified by:
addReturnValueHandlers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configureMessageConverters
public void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
- Specified by:
configureMessageConverters
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
extendMessageConverters
public void extendMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
- Specified by:
extendMessageConverters
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configureHandlerExceptionResolvers
public void configureHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers)
- Specified by:
configureHandlerExceptionResolvers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
extendHandlerExceptionResolvers
public void extendHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers)
- Specified by:
extendHandlerExceptionResolvers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
getValidator
@Nullable public org.springframework.validation.Validator getValidator()
- Specified by:
getValidator
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
getMessageCodesResolver
@Nullable public org.springframework.validation.MessageCodesResolver getMessageCodesResolver()
- Specified by:
getMessageCodesResolver
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
-