|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value={PARAMETER,METHOD})
@Retention(value=RUNTIME)
public @interface DefaultValueDefault value for a REST method parameter.
See the following example:
..@GET@Path("test") public String testOperation(@CookieParam("cookieName")@DefaultValue("default") String value) { return null; }
The value "default" will be passed to the value parameter when the cookie cookieName is not present on the HTTP request.
| Required Element Summary | |
|---|---|
String |
value
The default value. |
| Element Detail |
|---|
public abstract String value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||