Annotation Type 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 
      Modifier and Type Optional Element Description
      java.lang.String defaultValue  
      java.lang.String value  
    • Element Detail

      • value

        @AliasFor(annotation=io.micronaut.core.bind.annotation.Bindable.class,
                  member="value")
        java.lang.String 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")
        java.lang.String defaultValue
        Returns:
        The default value
        See Also:
        Bindable.defaultValue()
        Default:
        ""