Interface OpenAPIRoute
public interface OpenAPIRoute
-
Method Summary
Modifier and TypeMethodDescriptionaddFailureHandler(Handler<RoutingContext> handler) Adds a failure handler for this routeaddHandler(Handler<RoutingContext> handler) Adds a handler for this route which is executed after the security and validation handlers defined in the contractbooleanbooleansetDoSecurity(boolean doSecurity) Sets the security flag for incoming requests.setDoValidation(boolean doValidation) Sets the validation flag for incoming requests.
-
Method Details
-
addHandler
Adds a handler for this route which is executed after the security and validation handlers defined in the contract- Parameters:
handler- The handler to add- Returns:
- the route
-
getHandlers
List<Handler<RoutingContext>> getHandlers()- Returns:
- handlers of this route
-
addFailureHandler
Adds a failure handler for this route- Parameters:
handler- The failure handler to add- Returns:
- the route
-
getFailureHandlers
List<Handler<RoutingContext>> getFailureHandlers()- Returns:
- failure handlers of this route
-
getOperation
Operation getOperation()- Returns:
- the related operation of this route
-
doValidation
boolean doValidation()- Returns:
- true if validation based on the OpenAPI contract is active for this route. By default, it is active.
-
setDoValidation
Sets the validation flag for incoming requests.- Parameters:
doValidation- The validation flag.- Returns:
- the route
-
doSecurity
boolean doSecurity()- Returns:
- true if security checks based on the OpenAPI contract are active for this route. By default, it is active.
-
setDoSecurity
Sets the security flag for incoming requests.- Parameters:
doSecurity- The security flag.- Returns:
- the route
-