@Documented
@Retention(value=RUNTIME)
@Target(value=PARAMETER)
public @interface HeaderParam
Like JSR-311, @HeaderParam allows you to annotate an action method parameter to specify that its value should be loaded from the header parameters.
public WOActionResults testAction(@HeaderParam("person") Person personParam) {
...
}
This will automatically pass the value of the "person" header object (person: 10) into your action method as the "personParam" parameter.
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
value |
Copyright © 2002 – 2022 Project Wonder.