@Target(value={METHOD,TYPE}) @Documented @Retention(value=RUNTIME) public @interface Path
Modifier and Type | Fields and Description |
---|---|
static int |
DEFAULT |
static int |
HIGH |
static int |
HIGHEST |
static int |
LOW |
static int |
LOWEST |
Modifier and Type | Required Element and Description |
---|---|
String[] |
value
All paths that will be mapped to an annotated Controller method.
|
Modifier and Type | Optional Element and Description |
---|---|
int |
priority
Used to decide which path will be tested first.
|
public abstract int priority
\@Path(value="/url", priority=Path.HIGHEST) \@Path(value="/url", priority=Path.HIGH) \@Path(value="/url", priority=Path.DEFAULT) \@Path(value="/url", priority=Path.LOW) \@Path(value="/url", priority=Path.LOWEST)
Copyright © 2014 Caelum. All rights reserved.