|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={PARAMETER,FIELD,METHOD}) @Retention(value=RUNTIME) public @interface UriParam
Binds a method parameter, class field or property to a URI template
parameter value. The class of the annotated parameter, field or property
must have a constructor that accepts a single String argument, or a static method
named valueOf
that accepts a single String argument
(see, for example, Integer.valueOf(String)
).
Required Element Summary | |
---|---|
java.lang.String |
value
Defines the name of the URI template parameter who value will be used to initialize the value of the annotated method parameter, class field or property. |
Element Detail |
---|
public abstract java.lang.String value
E.g. a class annotated with: @UriTemplate("widgets/{id}")
can have methods annotated with @HttpMethod whose arguments are annotated
with @UriParam("id")
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |