|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=PARAMETER) public @interface Param
An annotation describing a parameter.
Route parameters can be annotated to provide constrain the value of a parameter, for instance:
public class MyController {
@View
@Route
("/myview/{id}")
public Response.Render
myView(@Param
(pattern = "[0-9]+") String id) { ... }
}
Optional Element Summary | |
---|---|
String |
pattern
The parameter pattern as a valid regular expression. |
public abstract String pattern
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |