Class SwaggerResourceResolver

java.lang.Object
org.springframework.web.servlet.resource.AbstractResourceResolver
org.springframework.web.servlet.resource.LiteWebJarsResourceResolver
org.springdoc.webmvc.ui.SwaggerResourceResolver
All Implemented Interfaces:
org.springframework.web.servlet.resource.ResourceResolver

public class SwaggerResourceResolver extends org.springframework.web.servlet.resource.LiteWebJarsResourceResolver
The type Web jars version resource resolver.
Author:
bnasslahsen
  • Field Summary

    Fields inherited from class org.springframework.web.servlet.resource.AbstractResourceResolver

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
    SwaggerResourceResolver(org.springdoc.core.properties.SwaggerUiConfigProperties swaggerUiConfigProperties)
    Instantiates a new Web jars version resource resolver.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    Find web jar resource path string.

    Methods inherited from class org.springframework.web.servlet.resource.LiteWebJarsResourceResolver

    resolveResourceInternal, resolveUrlPathInternal

    Methods inherited from class org.springframework.web.servlet.resource.AbstractResourceResolver

    resolveResource, resolveUrlPath

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SwaggerResourceResolver

      public SwaggerResourceResolver(org.springdoc.core.properties.SwaggerUiConfigProperties swaggerUiConfigProperties)
      Instantiates a new Web jars version resource resolver.
      Parameters:
      swaggerUiConfigProperties - the swagger ui config properties
  • Method Details

    • findWebJarResourcePath

      @Nullable protected String findWebJarResourcePath(String pathStr)
      Find web jar resource path string.
      Overrides:
      findWebJarResourcePath in class org.springframework.web.servlet.resource.LiteWebJarsResourceResolver
      Parameters:
      pathStr - the path
      Returns:
      the string