| Modifier and Type | Method and Description |
|---|---|
void |
add(CharSequence name,
Object value)
Adds a new header with the specified name and value.
|
void |
clear()
Removes all headers from this message.
|
void |
remove(String name)
Removes the header with the specified name.
|
void |
set(CharSequence name,
Iterable<?> values)
Sets a new header with the specified name and values.
|
void |
set(CharSequence name,
Object value)
Sets the (only) value for the header with the specified name.
|
void |
setDate(CharSequence name,
Date value)
Set a header with the given date as the value.
|
void add(CharSequence name, Object value)
Will not replace any existing values for the header.
name - The name of the headervalue - The value of the headervoid set(CharSequence name, Object value)
All existing values for the same header will be removed.
name - The name of the headervalue - The value of the headervoid setDate(CharSequence name, Date value)
name - The name of the headervalue - The date valuevoid set(CharSequence name, Iterable<?> values)
All existing values for the same header will be removed.
name - The name of the headervalues - The values of the headervoid remove(String name)
name - The name of the header to remove.void clear()