Class SwaggerUiResourceLocator

java.lang.Object
org.apache.cxf.jaxrs.swagger.ui.SwaggerUiResourceLocator

public class SwaggerUiResourceLocator extends Object
Swagger UI resource locator
  • Constructor Details

    • SwaggerUiResourceLocator

      public SwaggerUiResourceLocator(String swaggerUiRoot)
  • Method Details

    • locate

      public URL locate(String resourcePath) throws MalformedURLException
      Locate Swagger UI resource corresponding to resource path
      Parameters:
      resourcePath - resource path
      Returns:
      Swagger UI resource URL
      Throws:
      MalformedURLException
    • exists

      public boolean exists(String resourcePath)
      Checks the existence of the Swagger UI resource corresponding to resource path
      Parameters:
      resourcePath - resource path
      Returns:
      "true" if Swagger UI resource exists, "false" otherwise