@Retention(value=RUNTIME) @Target(value=TYPE) @Stereotype public @interface WebRoute
Route in a declarative way.
The annotated class must implement Handler with RoutingContext as an event type (otherwise it is ignored). Constructed instances are not CDI
contextual intances. In other words, they're not managed by the CDI container (similarly as Java EE components like servlets). However, the dependency
injection is supported.
This annotation is annotated with Stereotype to workaround the limitations of the annotated bean discovery mode.
Router| Modifier and Type | Required Element and Description |
|---|---|
String |
value
The path
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
blocking |
String |
consumes |
io.vertx.core.http.HttpMethod |
httpMethod |
int |
order
If set to
Integer.MIN_VALUE the order of the route is not modified. |
String |
produces |
String |
regex |
public abstract String value
public abstract io.vertx.core.http.HttpMethod httpMethod
public abstract String regex
public abstract int order
Integer.MIN_VALUE the order of the route is not modified.public abstract String produces
public abstract String consumes
Copyright © 2016. All Rights Reserved.