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.
    • Method Detail

      • 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 instance
        swaggerProps - Swagger properties (usually externalized)
        runAsFilter - "true" if Swagger integration is run as a filter, "false" otherwise.
        Returns:
        the Swagger UI registration
      • checkSupportSwaggerUiProp

        default boolean checkSupportSwaggerUiProp​(Properties props)
        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

        Map<String,​String> 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