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
HttpRootPathBuildItem.Builder and NonApplicationRootPathBuildItem.Builder extend this.
Please verify the extended builders behavior when changing this one.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected booleanprotected io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>protected booleanprotected Stringprotected Stringprotected Stringprotected Function<io.vertx.ext.web.Router,io.vertx.ext.web.Route> protected Stringprotected HandlerType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()displayOnNotFoundPage(String notFoundPageTitle) protected NotFoundPageDisplayableEndpointBuildItemprotected ConfiguredPathInfohandler(io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> handler) handlerType(HandlerType handlerType) management(String managementConfigKey) orderedRoute(String route, Integer order) orderedRoute(String route, Integer order, Consumer<io.vertx.ext.web.Route> routeCustomizer) routeConfigKey(String attributeName) routeFunction(String path, Consumer<io.vertx.ext.web.Route> routeFunction) routeFunction(Function<io.vertx.ext.web.Router, io.vertx.ext.web.Route> routeFunction) Deprecated.
-
Field Details
-
routeFunction
-
handler
protected io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> handler -
type
-
displayOnNotFoundPage
protected boolean displayOnNotFoundPage -
notFoundPageTitle
-
notFoundPagePath
-
routePath
-
routeConfigKey
-
absolutePath
-
isManagement
protected boolean isManagement
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
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
- 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
- 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
-
orderedRoute
public RouteBuildItem.Builder orderedRoute(String route, Integer order, Consumer<io.vertx.ext.web.Route> routeCustomizer) - 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 routerouteCustomizer- Route customizer.
-
handler
public RouteBuildItem.Builder handler(io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> handler) -
handlerType
-
blockingRoute
-
failureRoute
-
displayOnNotFoundPage
-
displayOnNotFoundPage
-
routeConfigKey
-
management
-
management
-
build
-
getRouteConfigInfo
-
getNotFoundEndpoint
-