@Target(value={PARAMETER,METHOD,FIELD}) @Retention(value=RUNTIME) public @interface DefaultValue
PathParam
,
QueryParam
,
MatrixParam
,
CookieParam
,
FormParam
,
or HeaderParam
.
The default value is used if the corresponding metadata is not present in the
request.
If the type of the annotated parameter is
List
, Set
or SortedSet
then the
resulting collection will have a single entry mapped from the supplied
default value.
If this annotation is not used and the corresponding metadata is not
present in the request, the value will be an empty collection for
List
, Set
or SortedSet
, null for
other object types, and the Java-defined default for primitive types.
PathParam
,
QueryParam
,
FormParam
,
HeaderParam
,
MatrixParam
,
CookieParam
public abstract String value
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.