Package org.apache.cxf.jaxrs.swagger.ui
Class SwaggerUiResourceLocator
- java.lang.Object
-
- org.apache.cxf.jaxrs.swagger.ui.SwaggerUiResourceLocator
-
public class SwaggerUiResourceLocator extends Object
Swagger UI resource locator
-
-
Constructor Summary
Constructors Constructor Description SwaggerUiResourceLocator(String swaggerUiRoot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists(String resourcePath)Checks the existence of the Swagger UI resource corresponding to resource pathURLlocate(String resourcePath)Locate Swagger UI resource corresponding to resource path
-
-
-
Constructor Detail
-
SwaggerUiResourceLocator
public SwaggerUiResourceLocator(String swaggerUiRoot)
-
-
Method Detail
-
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
-
-