Class OpenapiValidationGatewayFilterFactory.Config
java.lang.Object
ch.nexsol.gateway.validation.factory.OpenapiValidationGatewayFilterFactory.Config
- Enclosing class:
OpenapiValidationGatewayFilterFactory
Configuration for
OpenapiValidationGatewayFilterFactory.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
getSpecUrl
- Returns:
- the location of the contract
-
setSpecUrl
- Parameters:
specUrl- the location of the contract: anhttp(s)URL, or anything the resource loader understands such asclasspath:orfile:- Returns:
- this config, for chaining
-
getPathPrefix
- Returns:
- the gateway side path prefix stripped before matching the contract
-
setPathPrefix
- 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/booksis validated against the/booksoperation- Returns:
- this config, for chaining
-