@Documented
@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.
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
value |
Copyright © 2002 – 2022 Project Wonder.