|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value={PARAMETER,METHOD})
@Retention(value=RUNTIME)
public @interface CookieParamUsed to map a REST parameter to a cookie on the HTTP request
See the following example:
..@GET@Path("test") public String testOperation(@CookieParam("cookieName") String value) { return null; }
The cookie cookieName will be bound to the value parameter when processing this method invocation.
| Required Element Summary | |
|---|---|
String |
value
Defines the name of the HTTP cookie 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 | |||||||||