public static class RouteBuildItem.Builder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
absolutePath |
protected boolean |
displayOnNotFoundPage |
protected io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> |
handler |
protected String |
notFoundPagePath |
protected String |
notFoundPageTitle |
protected String |
routeConfigKey |
protected Function<io.vertx.ext.web.Router,io.vertx.ext.web.Route> |
routeFunction |
protected String |
routePath |
protected HandlerType |
type |
| Constructor and Description |
|---|
Builder()
Deprecated.
|
protected Function<io.vertx.ext.web.Router,io.vertx.ext.web.Route> routeFunction
protected io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> handler
protected HandlerType type
protected boolean displayOnNotFoundPage
protected String notFoundPageTitle
protected String notFoundPagePath
protected String routePath
protected String routeConfigKey
protected String absolutePath
@Deprecated public Builder()
@Deprecated public RouteBuildItem.Builder routeFunction(Function<io.vertx.ext.web.Router,io.vertx.ext.web.Route> routeFunction)
routeFunction(String, Consumer) should be used insteadrouteFunction - routeFunction(String, Consumer)public RouteBuildItem.Builder routeFunction(String path, Consumer<io.vertx.ext.web.Route> routeFunction)
path - A normalized path (e.g. use HttpRootPathBuildItem to construct/resolve the path value) defining
the route. This path this is also used on the "Not Found" page in dev mode.routeFunction - a Consumer of Routepublic RouteBuildItem.Builder route(String route)
route - A normalized path used to define a basic route
(e.g. use HttpRootPathBuildItem to construct/resolve the path value). This path this is also
used on the "Not Found" page in dev mode.public RouteBuildItem.Builder handler(io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> handler)
public RouteBuildItem.Builder handlerType(HandlerType handlerType)
public RouteBuildItem.Builder blockingRoute()
public RouteBuildItem.Builder failureRoute()
public RouteBuildItem.Builder displayOnNotFoundPage()
public RouteBuildItem.Builder displayOnNotFoundPage(String notFoundPageTitle)
@Deprecated public RouteBuildItem.Builder displayOnNotFoundPage(String notFoundPageTitle, String notFoundPagePath)
route(String),
routeFunction(String, Consumer)public RouteBuildItem.Builder routeConfigKey(String attributeName)
public RouteBuildItem build()
protected ConfiguredPathInfo getRouteConfigInfo()
protected NotFoundPageDisplayableEndpointBuildItem getNotFoundEndpoint()
Copyright © 2021 JBoss by Red Hat. All rights reserved.