public class SwaggerWebMvcConfigurer extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Constructor and Description |
---|
SwaggerWebMvcConfigurer(org.springdoc.core.SwaggerUiConfigParameters swaggerUiConfigParameters,
SwaggerIndexTransformer swaggerIndexTransformer,
Optional<org.springdoc.core.providers.ActuatorProvider> actuatorProvider,
SwaggerResourceResolver swaggerResourceResolver)
Instantiates a new Swagger web mvc configurer.
|
Modifier and Type | Method and 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() |
public SwaggerWebMvcConfigurer(org.springdoc.core.SwaggerUiConfigParameters swaggerUiConfigParameters, SwaggerIndexTransformer swaggerIndexTransformer, Optional<org.springdoc.core.providers.ActuatorProvider> actuatorProvider, SwaggerResourceResolver swaggerResourceResolver)
swaggerUiConfigParameters
- the swagger ui calculated configswaggerIndexTransformer
- the swagger index transformeractuatorProvider
- the actuator providerswaggerResourceResolver
- the swagger resource resolverpublic void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
addResourceHandlers
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer)
configurePathMatch
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
configureContentNegotiation
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void configureAsyncSupport(org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer configurer)
configureAsyncSupport
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void configureDefaultServletHandling(org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer configurer)
configureDefaultServletHandling
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void addFormatters(org.springframework.format.FormatterRegistry registry)
addFormatters
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
addInterceptors
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry)
addCorsMappings
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)
addViewControllers
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void configureViewResolvers(org.springframework.web.servlet.config.annotation.ViewResolverRegistry registry)
configureViewResolvers
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers)
addArgumentResolvers
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void addReturnValueHandlers(List<org.springframework.web.method.support.HandlerMethodReturnValueHandler> returnValueHandlers)
addReturnValueHandlers
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
configureMessageConverters
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void extendMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
extendMessageConverters
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void configureHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers)
configureHandlerExceptionResolvers
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public void extendHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers)
extendHandlerExceptionResolvers
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Nullable public org.springframework.validation.Validator getValidator()
getValidator
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Nullable public org.springframework.validation.MessageCodesResolver getMessageCodesResolver()
getMessageCodesResolver
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Copyright © 2024. All rights reserved.