Package io.micronaut.http.annotation
Annotation Interface CookieValue
@Documented
@Retention(RUNTIME)
@Target({FIELD,PARAMETER,ANNOTATION_TYPE})
@Bindable
@Inherited
public @interface CookieValue
An annotation that can be applied to method argument to indicate that the method argument is bound from an HTTP
cookie.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Optional Element Summary
-
Element Details
-
value
- Returns:
- The name of the cookie, otherwise it is inferred from the parameter name
- Default:
- ""
-
defaultValue
- Returns:
- The default value
- See Also:
- Default:
- ""
-