Class SwaggerProxy

All Implemented Interfaces:
Rule, Cloneable

public class SwaggerProxy extends ServiceProxy
Description

A service proxy that handles Swagger REST API calls. It includes a SwaggerRewriterInterceptor ex factory.

  • Constructor Details

    • SwaggerProxy

      public SwaggerProxy()
    • SwaggerProxy

      public SwaggerProxy(SwaggerProxyKey ruleKey, String targetHost, int targetPort)
  • Method Details

    • getNewInstance

      protected AbstractProxy getNewInstance()
      Overrides:
      getNewInstance in class ServiceProxy
    • init

      public void init() throws Exception
      Overrides:
      init in class ServiceProxy
      Throws:
      Exception
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String swaggerUrl)
      Description
      The Swagger URL. Preferably ends with 'swagger.json'.
      Example
      ...
    • isAllowUI

      public boolean isAllowUI()
    • setAllowUI

      public void setAllowUI(boolean allowUI)
      Default
      true
      Description
      Whether to allow Swagger UI forwarding
    • getSwagger

      public SwaggerCompatibleOpenAPI getSwagger()