public static class RouteBuildItem.Builder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
displayOnNotFoundPage |
protected io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> |
handler |
protected String |
notFoundPagePath |
protected String |
notFoundPageTitle |
protected Function<io.vertx.ext.web.Router,io.vertx.ext.web.Route> |
routeFunction |
protected HandlerType |
type |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
RouteBuildItem.Builder |
blockingRoute() |
RouteBuildItem |
build() |
RouteBuildItem.Builder |
displayOnNotFoundPage() |
RouteBuildItem.Builder |
displayOnNotFoundPage(String notFoundPageTitle) |
RouteBuildItem.Builder |
displayOnNotFoundPage(String notFoundPageTitle,
String notFoundPagePath) |
RouteBuildItem.Builder |
failureRoute() |
protected NotFoundPageDisplayableEndpointBuildItem |
getNotFoundEndpoint() |
RouteBuildItem.Builder |
handler(io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> handler) |
RouteBuildItem.Builder |
handlerType(HandlerType handlerType) |
RouteBuildItem.Builder |
route(String route) |
RouteBuildItem.Builder |
routeFunction(Function<io.vertx.ext.web.Router,io.vertx.ext.web.Route> routeFunction)
Deprecated.
|
RouteBuildItem.Builder |
routeFunction(String path,
Consumer<io.vertx.ext.web.Route> routeFunction) |
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
@Deprecated public RouteBuildItem.Builder routeFunction(Function<io.vertx.ext.web.Router,io.vertx.ext.web.Route> routeFunction)
routeFunction(String, Consumer) should be used insteadrouteFunction - public RouteBuildItem.Builder routeFunction(String path, Consumer<io.vertx.ext.web.Route> routeFunction)
public RouteBuildItem.Builder route(String route)
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)
public RouteBuildItem.Builder displayOnNotFoundPage(String notFoundPageTitle, String notFoundPagePath)
public RouteBuildItem build()
protected NotFoundPageDisplayableEndpointBuildItem getNotFoundEndpoint()
Copyright © 2021 JBoss by Red Hat. All rights reserved.