001package io.avaje.http.api; 002 003import java.lang.annotation.Retention; 004import java.lang.annotation.Target; 005 006import static java.lang.annotation.ElementType.FIELD; 007import static java.lang.annotation.ElementType.PARAMETER; 008import static java.lang.annotation.RetentionPolicy.RUNTIME; 009 010/** 011 * A parameter that is a cookie value. 012 * <p> 013 * We can put this on a method parameter or a <code>@Form</code> bean property. 014 * </p> 015 * 016 */ 017@Target(value={PARAMETER, FIELD}) 018@Retention(value=RUNTIME) 019public @interface Cookie { 020 021 /** 022 * The name of the cookie. 023 */ 024 String value() default ""; 025 026}