Class OpenAPIRoute

java.lang.Object
io.vertx.mutiny.ext.web.openapi.router.OpenAPIRoute
All Implemented Interfaces:
MutinyDelegate

public class OpenAPIRoute extends Object implements MutinyDelegate
  • Field Details

  • Constructor Details

    • OpenAPIRoute

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

      public OpenAPIRoute(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.web.openapi.router.OpenAPIRoute getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public OpenAPIRoute addHandler(Consumer<RoutingContext> handler)
      Parameters:
      handler - The handler to add
      Returns:
    • addFailureHandler

      public OpenAPIRoute addFailureHandler(Consumer<RoutingContext> handler)
      Parameters:
      handler - The failure handler to add
      Returns:
    • 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)
      Parameters:
      doValidation - The validation flag.
      Returns:
      the route
    • newInstance

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