com.sun.ws.rest.api
Annotation Type UriParam


@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

value

public abstract 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.

E.g. a class annotated with: @UriTemplate("widgets/{id}") can have methods annotated with @HttpMethod whose arguments are annotated with @UriParam("id").