com.sun.ws.rest.api
Annotation Type DefaultValue
@Target(value={PARAMETER,FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface DefaultValue
Defines the default value of a method parameter, field or bean property that
is bound from a URI query or matrix parameter or a HTTP header
using the @QueryParam, @MatrixParam
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
HTTP header is not
present. If this annotation is not used
and the query or matrix parameter is not present in the request URI or the 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
Required Element Summary |
java.lang.String |
value
The default value. |
value
public abstract java.lang.String value
- The default value.