|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value={PARAMETER,METHOD})
@Retention(value=RUNTIME)
@Documented
public @interface HeaderParamUsed to map a REST method parameter to a header on the HTTP request
See the following example:
..@GET@Path("test") public String testOperation(@HeaderParam("header") String value) { return null; }
The header "header" will be bound to the value parameter when processing this method invocation.
| Required Element Summary | |
|---|---|
String |
value
Defines the name of the HTTP header whose value will be used to initialize the value of the annotated method argument, class field or bean property. |
| Element Detail |
|---|
public abstract String value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||