org.cruxframework.crux.core.shared.rest.annotation
Annotation Type CookieParam


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

Used to map a REST parameter to a cookie on the HTTP request

See the following example:

 ..
 @GET
 @Path("test")
 public String testOperation(@CookieParam("cookieName") String value) {
    return null;
 }
 

The cookie cookieName will be bound to the value parameter when processing this method invocation.

Author:
Thiago da Rosa de Bustamante

Required Element Summary
 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 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.



Copyright © 2015. All rights reserved.