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


@Target(value={PARAMETER,FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface QueryParam

Binds a HTTP query parameter to a Java method parameter, class field or bean property. The class of the annotated parameter, field or bean must have a constructor that accepts a single String or List argument, or a static method named valueOf that accepts a single String argument (see, for example, Integer.valueOf(String)).

See Also:
DefaultValue

Required Element Summary
 java.lang.String value
          Defines the name of the HTTP query parameter whose value will be used to initialize the value of the annotated method argument, class field or bean property.
 

Element Detail

value

public abstract java.lang.String value
Defines the name of the HTTP query parameter whose value will be used to initialize the value of the annotated method argument, class field or bean property.