public abstract class ApplicationVerticle<T extends ApplicationConfig>
extends io.vertx.core.AbstractVerticle
| Modifier | Constructor and Description |
|---|---|
protected |
ApplicationVerticle(T appConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowCORSCredentials() |
protected void |
beforeAPIRouterMount(io.vertx.ext.web.Router router)
Called before mounting API subrouter.
|
protected abstract io.vertx.ext.auth.jwt.JWTAuth |
createAuthProvider() |
protected io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> |
createRouteFailureHandler() |
protected io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> |
createRouteLogHandler() |
protected Set<String> |
getAllowedHeaders() |
protected Set<io.vertx.core.http.HttpMethod> |
getAllowedMethods() |
protected T |
getAppConfig() |
protected Set<String> |
getExposedHeaders() |
protected abstract Class<?>[] |
getResourceClasses() |
protected void |
onRootRouterCreate(io.vertx.ext.web.Router router)
Called immediately after Router creation.
|
protected void |
onServerDeployed(io.vertx.core.http.HttpServer httpServer) |
protected void |
onServerDeployFail(Throwable error) |
void |
start(io.vertx.core.Promise<Void> startPromise) |
config, deploymentID, getVertx, init, processArgs, start, start, stop, stopprotected ApplicationVerticle(T appConfig)
public void start(io.vertx.core.Promise<Void> startPromise)
protected T getAppConfig()
protected void onRootRouterCreate(io.vertx.ext.web.Router router)
router - the root routerprotected void beforeAPIRouterMount(io.vertx.ext.web.Router router)
router - api subrouterprotected void onServerDeployed(io.vertx.core.http.HttpServer httpServer)
protected void onServerDeployFail(Throwable error)
protected boolean allowCORSCredentials()
protected Set<io.vertx.core.http.HttpMethod> getAllowedMethods()
protected io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> createRouteLogHandler()
protected io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> createRouteFailureHandler()
protected abstract io.vertx.ext.auth.jwt.JWTAuth createAuthProvider()
protected abstract Class<?>[] getResourceClasses()
Copyright © 2020. All rights reserved.