javax.ws.rs
Annotation Type CookieParam


@Target(value=PARAMETER)
@Retention(value=RUNTIME)
public @interface CookieParam

Binds the value of a HTTP cookie to a Java method parameter. A default value can be specified using the DefaultValue annotation. The type of the annotated parameter must either:

See Also:
DefaultValue, Cookie

Required Element Summary
 java.lang.String value
          Defines the name of the HTTP cookie 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 cookie whose value will be used to initialize the value of the annotated method argument, class field or bean property.