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


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

Binds a HTTP header 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 header 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 header whose value will be used to initialize the value of the annotated method argument, class field or bean property. Case insensitive.