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 HttpBuildTimeConfig(package private) final RuntimeValue<HttpConfiguration>(package private) final ManagementInterfaceBuildTimeConfig(package private) final RuntimeValue<ManagementInterfaceConfiguration>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>static io.quarkus.netty.runtime.virtual.VirtualAddressprotected static io.netty.bootstrap.ServerBootstrapprotected static io.netty.channel.ChannelFuture -
Constructor Summary
ConstructorsConstructorDescriptionVertxHttpRecorder(HttpBuildTimeConfig httpBuildTimeConfig, ManagementInterfaceBuildTimeConfig managementBuildTimeConfig, RuntimeValue<HttpConfiguration> httpConfiguration, RuntimeValue<ManagementInterfaceConfiguration> managementConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRoute(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.vertx.core.Handler<io.vertx.ext.web.RoutingContext>io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>RuntimeValue<io.vertx.mutiny.ext.web.Router>createMutinyRouter(RuntimeValue<io.vertx.ext.web.Router> router) voidfinalizeRouter(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) static Objectused in the live reload handler to make sure the application has not been changed by another source (e.g.io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>static io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest>RuntimeValue<io.vertx.ext.web.Router>initializeRouter(Supplier<io.vertx.core.Vertx> vertxRuntimeValue) voidmountFrameworkRouter(RuntimeValue<io.vertx.ext.web.Router> mainRouter, 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, ShutdownContext shutdown, 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
-
httpConfiguration
-
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
-
VertxHttpRecorder
public VertxHttpRecorder(HttpBuildTimeConfig httpBuildTimeConfig, ManagementInterfaceBuildTimeConfig managementBuildTimeConfig, RuntimeValue<HttpConfiguration> httpConfiguration, RuntimeValue<ManagementInterfaceConfiguration> managementConfiguration)
-
-
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) -
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
-
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()
-