| Constructor and Description |
|---|
Header(String name)
Creates a new header field with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(String value)
Adds the given value to this header field.
|
String |
getName()
Returns the name of this header field.
|
boolean |
hasValue(String value)
Returns whether this header field has a value matching the given value.
|
Iterator<String> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Header(String name)
name - The name of the header field.public String getName()
public boolean hasValue(String value)
value - The value to locatetrue if this header field already has a value matching
the given value, false otherwisepublic void addValue(String value)
value - The value to addCopyright © 2026. All rights reserved.