Class OpenapiValidationGatewayFilterFactory.Config

java.lang.Object
ch.nexsol.gateway.validation.factory.OpenapiValidationGatewayFilterFactory.Config
Enclosing class:
OpenapiValidationGatewayFilterFactory

@Validated public static class OpenapiValidationGatewayFilterFactory.Config extends Object
  • Constructor Details

    • Config

      public Config()
  • Method Details

    • getSpecUrl

      public String getSpecUrl()
      Returns:
      the location of the contract
    • setSpecUrl

      Parameters:
      specUrl - the location of the contract: an http(s) URL, or anything the resource loader understands such as classpath: or file:
      Returns:
      this config, for chaining
    • getPathPrefix

      public String getPathPrefix()
      Returns:
      the gateway side path prefix stripped before matching the contract
    • setPathPrefix

      public OpenapiValidationGatewayFilterFactory.Config setPathPrefix(String pathPrefix)
      Parameters:
      pathPrefix - the prefix the gateway exposes the contract under, stripped before a path is matched against it: with /book-service, a request to /book-service/books is validated against the /books operation
      Returns:
      this config, for chaining