Class OpenApiHandler

  • All Implemented Interfaces:
    io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>

    public class OpenApiHandler
    extends Object
    implements io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
    Handler that serve the OpenAPI document in either json or yaml format
    • Field Detail

      • corsEnabled

        final boolean corsEnabled
    • Constructor Detail

      • OpenApiHandler

        public OpenApiHandler​(boolean corsEnabled)
    • Method Detail

      • handle

        public void handle​(io.vertx.ext.web.RoutingContext event)
        Specified by:
        handle in interface io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>