Class VertxHttpRecorder

java.lang.Object
io.quarkus.vertx.http.runtime.VertxHttpRecorder

public class VertxHttpRecorder extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • setHotReplacement

      public static void setHotReplacement(io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> handler, io.quarkus.dev.spi.HotReplacementContext hrc)
    • shutDownDevMode

      public static void shutDownDevMode()
    • startServerAfterFailedStart

      public static void startServerAfterFailedStart()
    • initializeRouter

      public RuntimeValue<io.vertx.ext.web.Router> initializeRouter(Supplier<io.vertx.core.Vertx> vertxRuntimeValue)
    • createMutinyRouter

      public RuntimeValue<io.vertx.mutiny.ext.web.Router> createMutinyRouter(RuntimeValue<io.vertx.ext.web.Router> router)
    • createAccessLogPublisher

      public RuntimeValue<SubmissionPublisher<String>> createAccessLogPublisher()
    • startServer

      public void startServer(Supplier<io.vertx.core.Vertx> vertx, ShutdownContext shutdown, LaunchMode launchMode, boolean startVirtual, boolean startSocket, Supplier<Integer> ioThreads, List<String> websocketSubProtocols, boolean auxiliaryApplication, boolean disableWebSockets) throws IOException
      Throws:
      IOException
    • mountFrameworkRouter

      public void mountFrameworkRouter(RuntimeValue<io.vertx.ext.web.Router> mainRouter, RuntimeValue<io.vertx.ext.web.Router> frameworkRouter, String frameworkPath)
    • finalizeRouter

      public void finalizeRouter(Consumer<io.vertx.ext.web.Route> defaultRouteHandler, List<Filter> filterList, List<Filter> managementInterfaceFilterList, Supplier<io.vertx.core.Vertx> vertx, LiveReloadConfig liveReloadConfig, Optional<RuntimeValue<io.vertx.ext.web.Router>> mainRouterRuntimeValue, RuntimeValue<io.vertx.ext.web.Router> httpRouterRuntimeValue, RuntimeValue<io.vertx.mutiny.ext.web.Router> mutinyRouter, RuntimeValue<io.vertx.ext.web.Router> frameworkRouter, RuntimeValue<io.vertx.ext.web.Router> managementRouter, String rootPath, String nonRootPath, LaunchMode launchMode, BooleanSupplier[] requireBodyHandlerConditions, io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> bodyHandler, GracefulShutdownFilter gracefulShutdownFilter, Executor executor, LogBuildTimeConfig logBuildTimeConfig, String srcMainJava, List<String> knowClasses, List<ErrorPageAction> actions, Optional<RuntimeValue<SubmissionPublisher<String>>> publisher)
    • addRoute

      public void addRoute(RuntimeValue<io.vertx.ext.web.Router> router, Function<io.vertx.ext.web.Router,io.vertx.ext.web.Route> route, io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> handler, HandlerType type)
    • setNonApplicationRedirectHandler

      public void setNonApplicationRedirectHandler(String nonApplicationPath, String rootPath)
    • getNonApplicationRedirectHandler

      public io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> getNonApplicationRedirectHandler()
    • createGracefulShutdownHandler

      public GracefulShutdownFilter createGracefulShutdownHandler()
    • getRootHandler

      public static io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> getRootHandler()
    • getCurrentApplicationState

      public static Object getCurrentApplicationState()
      used in the live reload handler to make sure the application has not been changed by another source (e.g. reactive messaging)
    • createBodyHandler

      public io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> createBodyHandler()
    • createBodyHandlerForManagementInterface

      public io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> createBodyHandlerForManagementInterface()