@Target(value=PARAMETER)
 @Retention(value=RUNTIME)
 @Documented
public @interface Header
| Modifier and Type | Optional Element and Description | 
|---|---|
java.lang.String | 
defaultValue
The default value to use as a fallback. 
 | 
java.lang.String | 
name
The name of the request header to bind to. 
 | 
boolean | 
required
Whether the header is required. 
 | 
java.lang.String | 
value
Alias for  
name(). | 
public abstract boolean required
Default is true, leading to an exception if the header is
 missing. Switch this to false if you prefer a null
 value in case of a header missing.
defaultValue()public abstract java.lang.String defaultValue
Supplying a default value implicitly sets required() to false.