@Repeatable(value=Route.Routes.class) @Retention(value=RUNTIME) @Target(value=METHOD) public @interface Route
The target business method must return void and accept exactly one argument. must return void and accept
exactly one argument. The type of the argument can be RoutingContext,
io.vertx.reactivex.ext.web.RoutingContext or RoutingExchange.
If both path() and regex() are set the regular expression is used for matching.
If neither path() nor regex() is set the route will match a path derived from the name of the
method. This is done by de-camel-casing the name and then joining the segments with hyphens.
| Modifier and Type | Optional Element and Description |
|---|---|
String[] |
consumes
Used for content-based routing.
|
io.vertx.core.http.HttpMethod[] |
methods |
int |
order
If set to a positive number, it indicates the place of the route in the chain.
|
String |
path |
String[] |
produces
Used for content-based routing.
|
String |
regex |
Route.HandlerType |
type |
public abstract String path
Router.route(String)public abstract String regex
Router.routeWithRegex(String)public abstract io.vertx.core.http.HttpMethod[] methods
Route.methods()public abstract Route.HandlerType type
public abstract int order
io.vertx.ext.web.Route#order()public abstract String[] produces
Route.produces(String)public abstract String[] consumes
Route.consumes(String)Copyright © 2020 JBoss by Red Hat. All rights reserved.