public class HeaderDescriptor extends AbstractDescriptor<HeaderDescriptor>
HeaderDocumentation.headerWithName(String)| Modifier | Constructor and Description |
|---|---|
protected |
HeaderDescriptor(java.lang.String name)
Creates a new
HeaderDescriptor describing the header with the given
name. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Returns the name for the header.
|
boolean |
isOptional()
Returns
true if the described header is optional, otherwise false. |
HeaderDescriptor |
optional()
Marks the header as optional.
|
attributes, description, getAttributes, getDescriptionprotected HeaderDescriptor(java.lang.String name)
HeaderDescriptor describing the header with the given
name.name - the nameHttpHeaderspublic final HeaderDescriptor optional()
thispublic final java.lang.String getName()
public final boolean isOptional()
true if the described header is optional, otherwise false.true if the described header is optional, otherwise false