Package org.apache.cxf.jaxrs.swagger.ui
Interface SwaggerUiSupport
public interface SwaggerUiSupport
Generic trait to support Swagger UI integration for Swagger 1.5.x and
OpenAPI v3.x (Swagger 2.x) integrations.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classHolds the resources and/or providers which are required for Swagger UI integration to be plugged in. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanChecks the Swagger properties to determine if Swagger UI support is available or not.Detects the Swagger UI in root with respect to properties and configuration provided.default SwaggerUiSupport.RegistrationgetSwaggerUi(org.apache.cxf.Bus bus, Properties swaggerProps, boolean runAsFilter) Detects the presence of Swagger UI in classpath with respect to properties and configuration provided.Returns Swagger UI configuration parameters.Returns media types supported by Swagger UIChecks if Swagger UI support is available or not.
-
Field Details
-
SUPPORT_UI_PROPERTY
- See Also:
-
-
Method Details
-
getSwaggerUi
default SwaggerUiSupport.Registration getSwaggerUi(org.apache.cxf.Bus bus, Properties swaggerProps, boolean runAsFilter) Detects the presence of Swagger UI in classpath with respect to properties and configuration provided.- Parameters:
bus- bus instanceswaggerProps- Swagger properties (usually externalized)runAsFilter- "true" if Swagger integration is run as a filter, "false" otherwise.- Returns:
- the Swagger UI registration
-
checkSupportSwaggerUiProp
Checks the Swagger properties to determine if Swagger UI support is available or not.- Parameters:
props- Swagger properties (usually externalized)- Returns:
-
isSupportSwaggerUi
Boolean isSupportSwaggerUi()Checks if Swagger UI support is available or not.- Returns:
- "true" if Swagger UI support is available, "false" otherwise
-
findSwaggerUiRoot
String findSwaggerUiRoot()Detects the Swagger UI in root with respect to properties and configuration provided.- Returns:
- Swagger UI in root or "null" if not available
-
getSwaggerUiMediaTypes
Returns media types supported by Swagger UI- Returns:
- media types supported by Swagger UI
-
getSwaggerUiConfig
SwaggerUiConfig getSwaggerUiConfig()Returns Swagger UI configuration parameters.- Returns:
- Swagger UI configuration parameters or "null" if not available
-