@Target(value={PARAMETER,METHOD}) @Retention(value=RUNTIME) public @interface DefaultValue
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.
public abstract String value
Copyright © 2016. All rights reserved.