er.rest.routes.jsr311
Annotation Type PathParam
@Retention(value=RUNTIME)
@Target(value=PARAMETER)
public @interface PathParam
Like JSR-311, @PathParam allows you to annotate an action method parameter to specify
that its value should be loaded from the route paths.
public WOActionResults testAction(@PathParam("person") Person personParam) {
...
}
This will automatically pass the value of the "person" route object (/person/{person:Person}/test) into
your action method as the "personParam" parameter.
- Author:
- mschrag
Required Element Summary |
java.lang.String |
value
|
value
public abstract java.lang.String value
Copyright © 2002 – 2007 Project Wonder.