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 * Marks a method parameter to be a form parameter. 012 */ 013@Target(value={PARAMETER,FIELD}) 014@Retention(value=RUNTIME) 015public @interface FormParam { 016 017 /** 018 * The name of the form parameter. 019 * <p> 020 * If left blank the method parameter name is used. 021 * </p> 022 */ 023 String value() default ""; 024}