|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={PARAMETER,METHOD,FIELD}) @Retention(value=RUNTIME) public @interface DefaultValue
Defines the default value of request meta-data that is bound using one of the
following annotations:
PathParam
,
QueryParam
,
MatrixParam
,
CookieParam
,
FormParam
,
or HeaderParam
.
The default value is used if the corresponding meta-data 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.
List
, Set
or SortedSet
, null
for
other object types, and the Java-defined default for primitive types.
PathParam
,
QueryParam
,
FormParam
,
HeaderParam
,
MatrixParam
,
CookieParam
Required Element Summary | |
---|---|
String |
value
The specified default value. |
Element Detail |
---|
public abstract String value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |