Class VertxHttpRecorder

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

public class VertxHttpRecorder extends Object
  • Field Details

    • REQUEST_START_TIME

      public static final String REQUEST_START_TIME
      The key that the request start time is stored under
      See Also:
    • MAX_REQUEST_SIZE_KEY

      public static final String MAX_REQUEST_SIZE_KEY
      See Also:
    • rootHandler

      static volatile io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> rootHandler
    • GET

      public static final String GET
      See Also:
    • httpBuildTimeConfig

      final HttpBuildTimeConfig httpBuildTimeConfig
    • managementBuildTimeConfig

      final ManagementInterfaceBuildTimeConfig managementBuildTimeConfig
    • httpConfiguration

      final RuntimeValue<HttpConfiguration> httpConfiguration
    • managementConfiguration

      final RuntimeValue<ManagementInterfaceConfiguration> managementConfiguration
    • virtualBootstrap

      protected static io.netty.bootstrap.ServerBootstrap virtualBootstrap
    • virtualBootstrapChannel

      protected static io.netty.channel.ChannelFuture virtualBootstrapChannel
    • VIRTUAL_HTTP

      public static io.quarkus.netty.runtime.virtual.VirtualAddress VIRTUAL_HTTP
  • 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)
    • 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(io.quarkus.arc.runtime.BeanContainer container, 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, ShutdownConfig shutdownConfig, Executor executor, LogBuildTimeConfig logBuildTimeConfig, String srcMainJava, List<String> knowClasses, List<ErrorPageAction> actions)
    • 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()