public abstract class ApplicationVerticle<T extends ApplicationConfig>
extends io.vertx.core.AbstractVerticle
| Constructor and Description |
|---|
ApplicationVerticle(T appConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected List<io.vertx.ext.bridge.PermittedOptions> |
addInboundSocketRules() |
protected List<io.vertx.ext.bridge.PermittedOptions> |
addOutboundSocketRules() |
protected boolean |
allowCORSCredentials() |
protected void |
beforeRouterCreate(io.vertx.ext.web.Router router)
Called immediately after Router creation.
|
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 <R extends Resource> |
getResourceClasses() |
protected void |
onStart(io.vertx.core.http.HttpServer httpServer) |
protected void |
onStartFail(Throwable error) |
protected void |
setupRoutes(io.vertx.ext.web.Router apiRouter)
Called before mounting API subrouter.
|
void |
start(io.vertx.core.Promise<Void> startPromise) |
public ApplicationVerticle(T appConfig)
public void start(io.vertx.core.Promise<Void> startPromise)
start in interface io.vertx.core.Verticlestart in class io.vertx.core.AbstractVerticleprotected T getAppConfig()
protected void beforeRouterCreate(io.vertx.ext.web.Router router)
router - the root routerprotected void setupRoutes(io.vertx.ext.web.Router apiRouter)
apiRouter - api subrouterprotected void onStart(io.vertx.core.http.HttpServer httpServer)
protected void onStartFail(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 List<io.vertx.ext.bridge.PermittedOptions> addInboundSocketRules()
protected List<io.vertx.ext.bridge.PermittedOptions> addOutboundSocketRules()
Copyright © 2021. All rights reserved.