Package io.quarkus.vertx.http.runtime
Class VertxHttpRecorder
java.lang.Object
io.quarkus.vertx.http.runtime.VertxHttpRecorder
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(package private) final VertxHttpBuildTimeConfig(package private) final io.quarkus.runtime.RuntimeValue<VertxHttpConfig> (package private) final ManagementInterfaceBuildTimeConfig(package private) final io.quarkus.runtime.RuntimeValue<ManagementConfig> static final Stringstatic final StringThe key that the request start time is stored under(package private) static io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> (package private) final io.quarkus.runtime.RuntimeValue<io.quarkus.runtime.shutdown.ShutdownConfig> static io.quarkus.netty.runtime.virtual.VirtualAddressprotected static io.netty.bootstrap.ServerBootstrapprotected static io.netty.channel.ChannelFuture -
Constructor Summary
ConstructorsConstructorDescriptionVertxHttpRecorder(VertxHttpBuildTimeConfig httpBuildTimeConfig, ManagementInterfaceBuildTimeConfig managementBuildTimeConfig, io.quarkus.runtime.RuntimeValue<VertxHttpConfig> httpConfig, io.quarkus.runtime.RuntimeValue<ManagementConfig> managementConfig, io.quarkus.runtime.RuntimeValue<io.quarkus.runtime.shutdown.ShutdownConfig> shutdownConfig, io.quarkus.runtime.RuntimeValue<io.quarkus.registry.ValueRegistry> valueRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRoute(io.quarkus.runtime.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) io.quarkus.runtime.RuntimeValue<SubmissionPublisher<String>> io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> io.quarkus.runtime.RuntimeValue<io.vertx.mutiny.ext.web.Router> createMutinyRouter(io.quarkus.runtime.RuntimeValue<io.vertx.ext.web.Router> router) voidfinalizeRouter(Consumer<io.vertx.ext.web.Route> defaultRouteHandler, List<Filter> filterList, List<Filter> managementInterfaceFilterList, Supplier<io.vertx.core.Vertx> vertx, io.quarkus.runtime.LiveReloadConfig liveReloadConfig, Optional<io.quarkus.runtime.RuntimeValue<io.vertx.ext.web.Router>> mainRouterRuntimeValue, io.quarkus.runtime.RuntimeValue<io.vertx.ext.web.Router> httpRouterRuntimeValue, io.quarkus.runtime.RuntimeValue<io.vertx.mutiny.ext.web.Router> mutinyRouter, io.quarkus.runtime.RuntimeValue<io.vertx.ext.web.Router> frameworkRouter, io.quarkus.runtime.RuntimeValue<io.vertx.ext.web.Router> managementRouter, String rootPath, String nonRootPath, io.quarkus.runtime.LaunchMode launchMode, BooleanSupplier[] requireBodyHandlerConditions, io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> bodyHandler, GracefulShutdownFilter gracefulShutdownFilter, Executor executor, io.quarkus.runtime.logging.LogBuildTimeConfig logBuildTimeConfig, String srcMainJava, List<String> knowClasses, List<io.quarkus.runtime.ErrorPageAction> actions, Optional<io.quarkus.runtime.RuntimeValue<SubmissionPublisher<String>>> publisher) static Objectused in the live reload handler to make sure the application has not been changed by another source (e.g. reactive messaging)io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> static io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> io.quarkus.runtime.RuntimeValue<io.vertx.ext.web.Router> initializeRouter(Supplier<io.vertx.core.Vertx> vertxRuntimeValue) voidmountFrameworkRouter(io.quarkus.runtime.RuntimeValue<io.vertx.ext.web.Router> mainRouter, io.quarkus.runtime.RuntimeValue<io.vertx.ext.web.Router> frameworkRouter, String frameworkPath) static voidsetHotReplacement(io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> handler, io.quarkus.dev.spi.HotReplacementContext hrc) voidsetNonApplicationRedirectHandler(String nonApplicationPath, String rootPath) static voidvoidstartServer(Supplier<io.vertx.core.Vertx> vertx, io.quarkus.runtime.ShutdownContext shutdown, io.quarkus.runtime.LaunchMode launchMode, boolean startVirtual, boolean startSocket, Supplier<Integer> ioThreads, List<String> websocketSubProtocols, boolean auxiliaryApplication, boolean disableWebSockets) static void
-
Field Details
-
REQUEST_START_TIME
The key that the request start time is stored under- See Also:
-
MAX_REQUEST_SIZE_KEY
- See Also:
-
rootHandler
static volatile io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> rootHandler -
GET
- See Also:
-
httpBuildTimeConfig
-
managementBuildTimeConfig
-
httpConfig
-
managementConfig
-
shutdownConfig
final io.quarkus.runtime.RuntimeValue<io.quarkus.runtime.shutdown.ShutdownConfig> shutdownConfig -
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
-
VertxHttpRecorder
public VertxHttpRecorder(VertxHttpBuildTimeConfig httpBuildTimeConfig, ManagementInterfaceBuildTimeConfig managementBuildTimeConfig, io.quarkus.runtime.RuntimeValue<VertxHttpConfig> httpConfig, io.quarkus.runtime.RuntimeValue<ManagementConfig> managementConfig, io.quarkus.runtime.RuntimeValue<io.quarkus.runtime.shutdown.ShutdownConfig> shutdownConfig, io.quarkus.runtime.RuntimeValue<io.quarkus.registry.ValueRegistry> valueRegistry)
-
-
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 io.quarkus.runtime.RuntimeValue<io.vertx.ext.web.Router> initializeRouter(Supplier<io.vertx.core.Vertx> vertxRuntimeValue) -
createMutinyRouter
public io.quarkus.runtime.RuntimeValue<io.vertx.mutiny.ext.web.Router> createMutinyRouter(io.quarkus.runtime.RuntimeValue<io.vertx.ext.web.Router> router) -
createAccessLogPublisher
-
startServer
public void startServer(Supplier<io.vertx.core.Vertx> vertx, io.quarkus.runtime.ShutdownContext shutdown, io.quarkus.runtime.LaunchMode launchMode, boolean startVirtual, boolean startSocket, Supplier<Integer> ioThreads, List<String> websocketSubProtocols, boolean auxiliaryApplication, boolean disableWebSockets) throws IOException - Throws:
IOException
-
mountFrameworkRouter
public void mountFrameworkRouter(io.quarkus.runtime.RuntimeValue<io.vertx.ext.web.Router> mainRouter, io.quarkus.runtime.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, io.quarkus.runtime.LiveReloadConfig liveReloadConfig, Optional<io.quarkus.runtime.RuntimeValue<io.vertx.ext.web.Router>> mainRouterRuntimeValue, io.quarkus.runtime.RuntimeValue<io.vertx.ext.web.Router> httpRouterRuntimeValue, io.quarkus.runtime.RuntimeValue<io.vertx.mutiny.ext.web.Router> mutinyRouter, io.quarkus.runtime.RuntimeValue<io.vertx.ext.web.Router> frameworkRouter, io.quarkus.runtime.RuntimeValue<io.vertx.ext.web.Router> managementRouter, String rootPath, String nonRootPath, io.quarkus.runtime.LaunchMode launchMode, BooleanSupplier[] requireBodyHandlerConditions, io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> bodyHandler, GracefulShutdownFilter gracefulShutdownFilter, Executor executor, io.quarkus.runtime.logging.LogBuildTimeConfig logBuildTimeConfig, String srcMainJava, List<String> knowClasses, List<io.quarkus.runtime.ErrorPageAction> actions, Optional<io.quarkus.runtime.RuntimeValue<SubmissionPublisher<String>>> publisher) -
addRoute
public void addRoute(io.quarkus.runtime.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
-
getNonApplicationRedirectHandler
public io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> getNonApplicationRedirectHandler() -
createGracefulShutdownHandler
-
getRootHandler
public static io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> getRootHandler() -
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()
-