Class OpenAPIRoute
java.lang.Object
io.vertx.rxjava3.ext.web.openapi.router.OpenAPIRoute
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
-
Field Summary
Fields -
Constructor Summary
Constructors -
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 contractbooleanbooleanbooleaninthashCode()static OpenAPIRoutenewInstance(OpenAPIRoute arg) setDoSecurity(boolean doSecurity) Sets the security flag for incoming requests.setDoValidation(boolean doValidation) Sets the validation flag for incoming requests.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
OpenAPIRoute
-
OpenAPIRoute
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
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
-
addFailureHandler
Adds a failure handler for this route- Parameters:
handler- The failure handler to add- Returns:
- the route
-
getOperation
- Returns:
- the related operation of this route
-
doValidation
public 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
public 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
-
newInstance
-