@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.
public abstract String value
Copyright © 2002 – 2024 Project Wonder.