Annotation Interface CookieParam
Injects the value of an HTTP cookie into a handler method parameter.
Standard validation annotations may be declared directly on the injected parameter.
Example:
@HandleGet("/profile")
public User getProfile(@CookieParam("auth_token") @NotBlank String token) { ... }
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String valueCookie parameter name. If left empty, it defaults to the method parameter's name;- Default:
""
-