@Documented @Target(value={METHOD,TYPE}) @Retention(value=RUNTIME) public @interface Priority
When the URL of a GET request matches the URL patterns of multiple web methods, then the methods are chained according to their priorities.
If an explicit priority is omitted, a default is computed from the URL pattern.
For example, the patterns foo/**
, foo/$x
,
and foo/bar
overlap, but the first has higher default priority than the second,
and the second has higher default priority than the third.
Also, methods with return type void have higher priority than the WebContext.cache()
method.
URLPattern
Modifier and Type | Optional Element and Description |
---|---|
int |
value
Priority value.
|
Copyright © 2008-2012 Anders Møller & Mathias Schwarz.