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
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
- Returns:
- The name of the cookie, otherwise it is inferred from the parameter name
- Default:
- ""
-
defaultValue
@AliasFor(annotation=io.micronaut.core.bind.annotation.Bindable.class, member="defaultValue") String defaultValue- Returns:
- The default value
- See Also:
-
Bindable.defaultValue()
- Default:
- ""
-