public static class HttpRootPathBuildItem.Builder extends RouteBuildItem.Builder
absolutePath, displayOnNotFoundPage, handler, notFoundPagePath, notFoundPageTitle, routeConfigKey, routeFunction, routePath, type| Constructor and Description |
|---|
Builder(HttpRootPathBuildItem buildItem) |
Builder(HttpRootPathBuildItem buildItem)
public HttpRootPathBuildItem.Builder routeFunction(Function<io.vertx.ext.web.Router,io.vertx.ext.web.Route> routeFunction)
RouteBuildItem.BuilderRouteBuildItem.Builder.routeFunction(String, Consumer) should be used insteadrouteFunction in class RouteBuildItem.BuilderRouteBuildItem.Builder.routeFunction(String, Consumer)public HttpRootPathBuildItem.Builder routeFunction(String route, Consumer<io.vertx.ext.web.Route> routeFunction)
routeFunction in class RouteBuildItem.Builderroute - 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 HttpRootPathBuildItem.Builder route(String route)
route in class RouteBuildItem.Builderroute - 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 HttpRootPathBuildItem.Builder nestedRoute(String baseRoute, String subRoute)
public HttpRootPathBuildItem.Builder handler(io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> handler)
handler in class RouteBuildItem.Builderpublic HttpRootPathBuildItem.Builder handlerType(HandlerType handlerType)
handlerType in class RouteBuildItem.Builderpublic HttpRootPathBuildItem.Builder blockingRoute()
blockingRoute in class RouteBuildItem.Builderpublic HttpRootPathBuildItem.Builder failureRoute()
failureRoute in class RouteBuildItem.Builderpublic HttpRootPathBuildItem.Builder displayOnNotFoundPage()
displayOnNotFoundPage in class RouteBuildItem.Builderpublic HttpRootPathBuildItem.Builder displayOnNotFoundPage(String notFoundPageTitle)
displayOnNotFoundPage in class RouteBuildItem.Builderpublic HttpRootPathBuildItem.Builder displayOnNotFoundPage(String notFoundPageTitle, String notFoundPagePath)
displayOnNotFoundPage in class RouteBuildItem.BuilderRouteBuildItem.Builder.route(String),
RouteBuildItem.Builder.routeFunction(String, Consumer)public HttpRootPathBuildItem.Builder routeConfigKey(String attributeName)
routeConfigKey in class RouteBuildItem.Builderpublic RouteBuildItem build()
build in class RouteBuildItem.Builderprotected ConfiguredPathInfo getRouteConfigInfo()
getRouteConfigInfo in class RouteBuildItem.Builderprotected NotFoundPageDisplayableEndpointBuildItem getNotFoundEndpoint()
getNotFoundEndpoint in class RouteBuildItem.BuilderCopyright © 2021 JBoss by Red Hat. All rights reserved.