Package io.quarkus.vertx.http.deployment
Class RouteBuildItem.Builder
- java.lang.Object
-
- io.quarkus.vertx.http.deployment.RouteBuildItem.Builder
-
- Direct Known Subclasses:
HttpRootPathBuildItem.Builder,NonApplicationRootPathBuildItem.Builder
- Enclosing class:
- RouteBuildItem
public static class RouteBuildItem.Builder extends Object
HttpRootPathBuildItem.Builder and NonApplicationRootPathBuildItem.Builder extend this. Please verify the extended builders behavior when changing this one.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringabsolutePathprotected booleandisplayOnNotFoundPageprotected io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>handlerprotected StringnotFoundPagePathprotected StringnotFoundPageTitleprotected StringrouteConfigKeyprotected Function<io.vertx.ext.web.Router,io.vertx.ext.web.Route>routeFunctionprotected StringroutePathprotected HandlerTypetype
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RouteBuildItem.BuilderblockingRoute()RouteBuildItembuild()RouteBuildItem.BuilderdisplayOnNotFoundPage()RouteBuildItem.BuilderdisplayOnNotFoundPage(String notFoundPageTitle)RouteBuildItem.BuilderfailureRoute()protected NotFoundPageDisplayableEndpointBuildItemgetNotFoundEndpoint()protected ConfiguredPathInfogetRouteConfigInfo()RouteBuildItem.Builderhandler(io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> handler)RouteBuildItem.BuilderhandlerType(HandlerType handlerType)RouteBuildItem.BuilderorderedRoute(String route, Integer order)RouteBuildItem.Builderroute(String route)RouteBuildItem.BuilderrouteConfigKey(String attributeName)RouteBuildItem.BuilderrouteFunction(String path, Consumer<io.vertx.ext.web.Route> routeFunction)RouteBuildItem.BuilderrouteFunction(Function<io.vertx.ext.web.Router,io.vertx.ext.web.Route> routeFunction)Deprecated.
-
-
-
Field Detail
-
routeFunction
protected Function<io.vertx.ext.web.Router,io.vertx.ext.web.Route> routeFunction
-
handler
protected io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> handler
-
type
protected HandlerType type
-
displayOnNotFoundPage
protected boolean displayOnNotFoundPage
-
notFoundPageTitle
protected String notFoundPageTitle
-
notFoundPagePath
protected String notFoundPagePath
-
routePath
protected String routePath
-
routeConfigKey
protected String routeConfigKey
-
absolutePath
protected String absolutePath
-
-
Method Detail
-
routeFunction
@Deprecated public RouteBuildItem.Builder routeFunction(Function<io.vertx.ext.web.Router,io.vertx.ext.web.Route> routeFunction)
Deprecated.routeFunction(String, Consumer)should be used instead- Parameters:
routeFunction-- See Also:
routeFunction(String, Consumer)
-
routeFunction
public RouteBuildItem.Builder routeFunction(String path, Consumer<io.vertx.ext.web.Route> routeFunction)
- Parameters:
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 Route
-
route
public RouteBuildItem.Builder route(String route)
- Parameters:
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.
-
orderedRoute
public RouteBuildItem.Builder orderedRoute(String route, Integer order)
- Parameters:
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.order- Priority ordering of the route
-
handler
public RouteBuildItem.Builder handler(io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> handler)
-
handlerType
public RouteBuildItem.Builder handlerType(HandlerType handlerType)
-
blockingRoute
public RouteBuildItem.Builder blockingRoute()
-
failureRoute
public RouteBuildItem.Builder failureRoute()
-
displayOnNotFoundPage
public RouteBuildItem.Builder displayOnNotFoundPage()
-
displayOnNotFoundPage
public RouteBuildItem.Builder displayOnNotFoundPage(String notFoundPageTitle)
-
routeConfigKey
public RouteBuildItem.Builder routeConfigKey(String attributeName)
-
build
public RouteBuildItem build()
-
getRouteConfigInfo
protected ConfiguredPathInfo getRouteConfigInfo()
-
getNotFoundEndpoint
protected NotFoundPageDisplayableEndpointBuildItem getNotFoundEndpoint()
-
-