Class OpenAPIRoute


  • public class OpenAPIRoute
    extends Object
    • Constructor Detail

      • OpenAPIRoute

        public OpenAPIRoute​(io.vertx.ext.web.openapi.router.OpenAPIRoute delegate)
      • OpenAPIRoute

        public OpenAPIRoute​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getDelegate

        public io.vertx.ext.web.openapi.router.OpenAPIRoute getDelegate()
      • addHandler

        public OpenAPIRoute addHandler​(io.vertx.core.Handler<RoutingContext> handler)
        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

        public OpenAPIRoute addFailureHandler​(io.vertx.core.Handler<RoutingContext> handler)
        Adds a failure handler for this route
        Parameters:
        handler - The failure handler to add
        Returns:
        the route
      • getOperation

        public Operation 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

        public OpenAPIRoute setDoValidation​(boolean doValidation)
        Sets the validation flag for incoming requests.
        Parameters:
        doValidation - The validation flag.
        Returns:
        the route
      • newInstance

        public static OpenAPIRoute newInstance​(io.vertx.ext.web.openapi.router.OpenAPIRoute arg)