@Retention(value=RUNTIME)
@Target(value=PARAMETER)
public @interface EntityHttpParam
This annotation indicates that this method parameter should be replaced by the value
in the HTTP query parameter, header, or form parameter whose name matches the name set in the annotation
Binds the value(s) of a HTTP query parameter to a resource method parameter.
A default value can be specified for this annotation.
The type T of the annotated parameter, field, or property must either:
1. Be a primitive type
2. Have a constructor that accepts a single String argument
3. Have a static method named valueOf that accepts a single String argument (see, for example, Integer.valueOf(String))
4. Be List, Set or SortedSet, where T satisfies 2 or 3 above. The resulting collection is read-only.
If the type is not one of those listed in 4 above then the first value (lexically) of the parameter is used.
- Author:
- Aaron Zeckoski (azeckoski @ gmail.com)