javax.ws.rs
Annotation Type DefaultValue
@Target(value=PARAMETER)
@Retention(value=RUNTIME)
public @interface DefaultValue
Defines the default value of a method parameter that
is bound from a URI query or matrix parameter or a HTTP header
using the @QueryParam, @MatrixParam, @CookieParam
or @HeaderParam annotations respectively. The
default value is used if the query
or matrix parameter is not present in the request URI or if the
cookie or HTTP header is not
present in the request. If this annotation is not used
and the query or matrix parameter is not present in the request URI or the
cookie or HTTP header is not supplied, the value will
be null for class types and the Java-defined default for primitive types.
- See Also:
QueryParam
,
HeaderParam
,
MatrixParam
,
CookieParam
Required Element Summary |
java.lang.String |
value
The default value. |
value
public abstract java.lang.String value
- The default value.