@Target(value={})
 @Retention(value=RUNTIME)
 @Inherited
public @interface Header
| Modifier and Type | Optional Element and Description | 
|---|---|
| boolean | allowEmptyValueWhen true, allows sending an empty value. | 
| boolean | deprecatedSpecifies that a header is deprecated and should be transitioned out of usage. | 
| java.lang.String | descriptionAdditional description data to provide on the purpose of the header | 
| Extension[] | extensionsList of extensions to be added to the  Headermodel
 corresponding to the containing annotation. | 
| java.lang.String | nameThe name of the header. | 
| java.lang.String | refReference value to a Header object. | 
| boolean | requiredDetermines whether this header is mandatory. | 
| Schema | schemaThe schema defining the type used for the header. | 
public abstract java.lang.String name
It is a REQUIRED property unless this is only a reference to a header instance.
When the header is defined withinComponents, the name will
 be used as the key to add this header to the 'headers' map for reuse.public abstract java.lang.String description
public abstract Schema schema
public abstract boolean required
public abstract boolean deprecated
public abstract boolean allowEmptyValue
public abstract java.lang.String ref
This property provides a reference to an object defined elsewhere. This property and all other properties are mutually exclusive. If other properties are defined in addition to the ref property then the result is undefined.