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 Details

    • SwaggerWebMvcConfigurer

      public SwaggerWebMvcConfigurer(org.springdoc.core.properties.SwaggerUiConfigProperties swaggerUiConfigProperties, SwaggerIndexTransformer swaggerIndexTransformer, Optional<org.springdoc.core.providers.ActuatorProvider> actuatorProvider, SwaggerResourceResolver swaggerResourceResolver)
      Instantiates a new Swagger web mvc configurer.
      Parameters:
      swaggerUiConfigProperties - the swagger ui calculated config
      swaggerIndexTransformer - the swagger index transformer
      actuatorProvider - the actuator provider
      swaggerResourceResolver - the swagger resource resolver
  • Method Details

    • addResourceHandlers

      public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
      Specified by:
      addResourceHandlers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • configurePathMatch

      public void configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer)
      Specified by:
      configurePathMatch in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • configureContentNegotiation

      public void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
      Specified by:
      configureContentNegotiation in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • configureAsyncSupport

      public void configureAsyncSupport(org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer configurer)
      Specified by:
      configureAsyncSupport in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • configureDefaultServletHandling

      public void configureDefaultServletHandling(org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer configurer)
      Specified by:
      configureDefaultServletHandling in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • addFormatters

      public void addFormatters(org.springframework.format.FormatterRegistry registry)
      Specified by:
      addFormatters in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • addInterceptors

      public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
      Specified by:
      addInterceptors in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • addCorsMappings

      public void addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry)
      Specified by:
      addCorsMappings in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • addViewControllers

      public void addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)
      Specified by:
      addViewControllers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • configureViewResolvers

      public void configureViewResolvers(org.springframework.web.servlet.config.annotation.ViewResolverRegistry registry)
      Specified by:
      configureViewResolvers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • addArgumentResolvers

      public void addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers)
      Specified by:
      addArgumentResolvers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • addReturnValueHandlers

      public void addReturnValueHandlers(List<org.springframework.web.method.support.HandlerMethodReturnValueHandler> returnValueHandlers)
      Specified by:
      addReturnValueHandlers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • configureMessageConverters

      public void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
      Specified by:
      configureMessageConverters in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • extendMessageConverters

      public void extendMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
      Specified by:
      extendMessageConverters in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • configureHandlerExceptionResolvers

      public void configureHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers)
      Specified by:
      configureHandlerExceptionResolvers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • extendHandlerExceptionResolvers

      public void extendHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers)
      Specified by:
      extendHandlerExceptionResolvers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • getValidator

      @Nullable public org.springframework.validation.Validator getValidator()
      Specified by:
      getValidator in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • getMessageCodesResolver

      @Nullable public org.springframework.validation.MessageCodesResolver getMessageCodesResolver()
      Specified by:
      getMessageCodesResolver in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer