public class DefaultBinaryHeaders extends DefaultHeaders<io.netty.util.ByteString> implements BinaryHeaders
DefaultHeaders.HashCodeGenerator<T>, DefaultHeaders.IdentityNameConverter<T>, DefaultHeaders.JavaHashCodeGenerator<T>, DefaultHeaders.KeyValueHeaderIterator, DefaultHeaders.NameConverter<T>BinaryHeaders.EntryVisitor, BinaryHeaders.NameVisitorHeaders.ValueConverter<T>| Modifier and Type | Field and Description |
|---|---|
protected static DefaultHeaders.NameConverter<io.netty.util.ByteString> |
IDENTITY_NAME_CONVERTER |
| Constructor and Description |
|---|
DefaultBinaryHeaders() |
DefaultBinaryHeaders(DefaultHeaders.NameConverter<io.netty.util.ByteString> nameConverter) |
| Modifier and Type | Method and Description |
|---|---|
BinaryHeaders |
add(BinaryHeaders headers)
|
BinaryHeaders |
add(io.netty.util.ByteString name,
io.netty.util.ByteString... values)
Adds a new header with the specified name and values.
|
BinaryHeaders |
add(io.netty.util.ByteString name,
io.netty.util.ByteString value)
Adds a new header with the specified name and value.
|
BinaryHeaders |
add(io.netty.util.ByteString name,
Iterable<? extends io.netty.util.ByteString> values)
Adds a new header with the specified name and values.
|
BinaryHeaders |
addBoolean(io.netty.util.ByteString name,
boolean value)
Add the
name to value. |
BinaryHeaders |
addByte(io.netty.util.ByteString name,
byte value)
Add the
name to value. |
BinaryHeaders |
addChar(io.netty.util.ByteString name,
char value)
Add the
name to value. |
BinaryHeaders |
addDouble(io.netty.util.ByteString name,
double value)
Add the
name to value. |
BinaryHeaders |
addFloat(io.netty.util.ByteString name,
float value)
Add the
name to value. |
BinaryHeaders |
addInt(io.netty.util.ByteString name,
int value)
Add the
name to value. |
BinaryHeaders |
addLong(io.netty.util.ByteString name,
long value)
Add the
name to value. |
BinaryHeaders |
addObject(io.netty.util.ByteString name,
Iterable<?> values)
Adds a new header with the specified name and values.
|
BinaryHeaders |
addObject(io.netty.util.ByteString name,
Object... values)
Adds a new header with the specified name and values.
|
BinaryHeaders |
addObject(io.netty.util.ByteString name,
Object value)
Adds a new header with the specified name and value.
|
BinaryHeaders |
addShort(io.netty.util.ByteString name,
short value)
Add the
name to value. |
BinaryHeaders |
addTimeMillis(io.netty.util.ByteString name,
long value)
Add the
name to value. |
BinaryHeaders |
clear()
Removes all headers.
|
BinaryHeaders |
set(BinaryHeaders headers)
|
BinaryHeaders |
set(io.netty.util.ByteString name,
io.netty.util.ByteString... values)
Sets a header with the specified name and values.
|
BinaryHeaders |
set(io.netty.util.ByteString name,
io.netty.util.ByteString value)
Sets a header with the specified name and value.
|
BinaryHeaders |
set(io.netty.util.ByteString name,
Iterable<? extends io.netty.util.ByteString> values)
Sets a header with the specified name and values.
|
BinaryHeaders |
setAll(BinaryHeaders headers)
|
BinaryHeaders |
setBoolean(io.netty.util.ByteString name,
boolean value)
Set the
name to value. |
BinaryHeaders |
setByte(io.netty.util.ByteString name,
byte value)
Set the
name to value. |
BinaryHeaders |
setChar(io.netty.util.ByteString name,
char value)
Set the
name to value. |
BinaryHeaders |
setDouble(io.netty.util.ByteString name,
double value)
Set the
name to value. |
BinaryHeaders |
setFloat(io.netty.util.ByteString name,
float value)
Set the
name to value. |
BinaryHeaders |
setInt(io.netty.util.ByteString name,
int value)
Set the
name to value. |
BinaryHeaders |
setLong(io.netty.util.ByteString name,
long value)
Set the
name to value. |
BinaryHeaders |
setObject(io.netty.util.ByteString name,
Iterable<?> values)
Sets a header with the specified name and values.
|
BinaryHeaders |
setObject(io.netty.util.ByteString name,
Object... values)
Sets a header with the specified name and values.
|
BinaryHeaders |
setObject(io.netty.util.ByteString name,
Object value)
Sets a header with the specified name and value.
|
BinaryHeaders |
setShort(io.netty.util.ByteString name,
short value)
Set the
name to value. |
BinaryHeaders |
setTimeMillis(io.netty.util.ByteString name,
long value)
Set the
name to value. |
add, contains, contains, contains, contains, containsBoolean, containsByte, containsChar, containsDouble, containsFloat, containsInt, containsLong, containsObject, containsObject, containsObject, containsShort, containsTimeMillis, entries, equals, forEachEntry, forEachName, get, get, getAll, getAllAndRemove, getAndRemove, getAndRemove, getBoolean, getBoolean, getBooleanAndRemove, getBooleanAndRemove, getByte, getByte, getByteAndRemove, getByteAndRemove, getChar, getChar, getCharAndRemove, getCharAndRemove, getDouble, getDouble, getDoubleAndRemove, getDoubleAndRemove, getFloat, getFloat, getFloatAndRemove, getFloatAndRemove, getInt, getInt, getInt, getIntAndRemove, getIntAndRemove, getLong, getLong, getLongAndRemove, getLongAndRemove, getShort, getShortAndRemove, getShortAndRemove, getTimeMillis, getTimeMillis, getTimeMillisAndRemove, getTimeMillisAndRemove, hashCode, isEmpty, iterator, names, namesList, remove, set, setAll, size, toString, valueConverterclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, contains, contains, contains, contains, containsBoolean, containsByte, containsChar, containsDouble, containsFloat, containsInt, containsLong, containsObject, containsObject, containsObject, containsShort, containsTimeMillis, entries, forEachEntry, forEachName, get, get, getAll, getAllAndRemove, getAndRemove, getAndRemove, getBoolean, getBoolean, getBooleanAndRemove, getBooleanAndRemove, getByte, getByte, getByteAndRemove, getByteAndRemove, getChar, getChar, getCharAndRemove, getCharAndRemove, getDouble, getDouble, getDoubleAndRemove, getDoubleAndRemove, getFloat, getFloat, getFloatAndRemove, getFloatAndRemove, getInt, getInt, getInt, getIntAndRemove, getIntAndRemove, getLong, getLong, getLongAndRemove, getLongAndRemove, getShort, getShortAndRemove, getShortAndRemove, getTimeMillis, getTimeMillis, getTimeMillisAndRemove, getTimeMillisAndRemove, isEmpty, iterator, names, namesList, remove, set, setAll, sizeprotected static final DefaultHeaders.NameConverter<io.netty.util.ByteString> IDENTITY_NAME_CONVERTER
public DefaultBinaryHeaders()
public DefaultBinaryHeaders(DefaultHeaders.NameConverter<io.netty.util.ByteString> nameConverter)
public BinaryHeaders add(io.netty.util.ByteString name, io.netty.util.ByteString value)
HeadersString, it is
converted into a String by Object.toString(), except in the cases of Date and
Calendar, which are formatted to the date format defined in RFC2616.add in interface BinaryHeadersadd in interface Headers<io.netty.util.ByteString>add in class DefaultHeaders<io.netty.util.ByteString>name - the name of the header being addedvalue - the value of the header being addedthispublic BinaryHeaders add(io.netty.util.ByteString name, Iterable<? extends io.netty.util.ByteString> values)
Headers
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
add in interface BinaryHeadersadd in interface Headers<io.netty.util.ByteString>add in class DefaultHeaders<io.netty.util.ByteString>name - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic BinaryHeaders add(io.netty.util.ByteString name, io.netty.util.ByteString... values)
Headers
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
add in interface BinaryHeadersadd in interface Headers<io.netty.util.ByteString>add in class DefaultHeaders<io.netty.util.ByteString>name - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic BinaryHeaders addObject(io.netty.util.ByteString name, Object value)
HeadersString, it is
converted into a String by Object.toString(), except in the cases of Date and
Calendar, which are formatted to the date format defined in RFC2616.addObject in interface BinaryHeadersaddObject in interface Headers<io.netty.util.ByteString>addObject in class DefaultHeaders<io.netty.util.ByteString>name - the name of the header being addedvalue - the value of the header being addedthispublic BinaryHeaders addObject(io.netty.util.ByteString name, Iterable<?> values)
Headers
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
addObject in interface BinaryHeadersaddObject in interface Headers<io.netty.util.ByteString>addObject in class DefaultHeaders<io.netty.util.ByteString>name - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic BinaryHeaders addObject(io.netty.util.ByteString name, Object... values)
Headers
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
addObject in interface BinaryHeadersaddObject in interface Headers<io.netty.util.ByteString>addObject in class DefaultHeaders<io.netty.util.ByteString>name - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic BinaryHeaders addBoolean(io.netty.util.ByteString name, boolean value)
Headersname to value.addBoolean in interface BinaryHeadersaddBoolean in interface Headers<io.netty.util.ByteString>addBoolean in class DefaultHeaders<io.netty.util.ByteString>name - The name to modifyvalue - The valuethispublic BinaryHeaders addChar(io.netty.util.ByteString name, char value)
Headersname to value.addChar in interface BinaryHeadersaddChar in interface Headers<io.netty.util.ByteString>addChar in class DefaultHeaders<io.netty.util.ByteString>name - The name to modifyvalue - The valuethispublic BinaryHeaders addByte(io.netty.util.ByteString name, byte value)
Headersname to value.addByte in interface BinaryHeadersaddByte in interface Headers<io.netty.util.ByteString>addByte in class DefaultHeaders<io.netty.util.ByteString>name - The name to modifyvalue - The valuethispublic BinaryHeaders addShort(io.netty.util.ByteString name, short value)
Headersname to value.addShort in interface BinaryHeadersaddShort in interface Headers<io.netty.util.ByteString>addShort in class DefaultHeaders<io.netty.util.ByteString>name - The name to modifyvalue - The valuethispublic BinaryHeaders addInt(io.netty.util.ByteString name, int value)
Headersname to value.addInt in interface BinaryHeadersaddInt in interface Headers<io.netty.util.ByteString>addInt in class DefaultHeaders<io.netty.util.ByteString>name - The name to modifyvalue - The valuethispublic BinaryHeaders addLong(io.netty.util.ByteString name, long value)
Headersname to value.addLong in interface BinaryHeadersaddLong in interface Headers<io.netty.util.ByteString>addLong in class DefaultHeaders<io.netty.util.ByteString>name - The name to modifyvalue - The valuethispublic BinaryHeaders addFloat(io.netty.util.ByteString name, float value)
Headersname to value.addFloat in interface BinaryHeadersaddFloat in interface Headers<io.netty.util.ByteString>addFloat in class DefaultHeaders<io.netty.util.ByteString>name - The name to modifyvalue - The valuethispublic BinaryHeaders addDouble(io.netty.util.ByteString name, double value)
Headersname to value.addDouble in interface BinaryHeadersaddDouble in interface Headers<io.netty.util.ByteString>addDouble in class DefaultHeaders<io.netty.util.ByteString>name - The name to modifyvalue - The valuethispublic BinaryHeaders addTimeMillis(io.netty.util.ByteString name, long value)
Headersname to value.addTimeMillis in interface BinaryHeadersaddTimeMillis in interface Headers<io.netty.util.ByteString>addTimeMillis in class DefaultHeaders<io.netty.util.ByteString>name - The name to modifyvalue - The valuethispublic BinaryHeaders add(BinaryHeaders headers)
BinaryHeadersadd in interface BinaryHeaderspublic BinaryHeaders set(io.netty.util.ByteString name, io.netty.util.ByteString value)
HeadersString, it is converted into a String by
Object.toString(), except for Date and Calendar, which are formatted
to the date format defined in RFC2616.set in interface BinaryHeadersset in interface Headers<io.netty.util.ByteString>set in class DefaultHeaders<io.netty.util.ByteString>name - The name of the header being setvalue - The value of the header being setthispublic BinaryHeaders set(io.netty.util.ByteString name, Iterable<? extends io.netty.util.ByteString> values)
Headers
headers.remove(name);
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
set in interface BinaryHeadersset in interface Headers<io.netty.util.ByteString>set in class DefaultHeaders<io.netty.util.ByteString>name - the name of the headers being setvalues - the values of the headers being setthispublic BinaryHeaders set(io.netty.util.ByteString name, io.netty.util.ByteString... values)
Headers
headers.remove(name);
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
set in interface BinaryHeadersset in interface Headers<io.netty.util.ByteString>set in class DefaultHeaders<io.netty.util.ByteString>name - the name of the headers being setvalues - the values of the headers being setthispublic BinaryHeaders setObject(io.netty.util.ByteString name, Object value)
HeadersString, it is converted into a String by
Object.toString(), except for Date and Calendar, which are formatted
to the date format defined in RFC2616.setObject in interface BinaryHeaderssetObject in interface Headers<io.netty.util.ByteString>setObject in class DefaultHeaders<io.netty.util.ByteString>name - The name of the header being setvalue - The value of the header being setthispublic BinaryHeaders setObject(io.netty.util.ByteString name, Iterable<?> values)
Headers
headers.remove(name);
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
setObject in interface BinaryHeaderssetObject in interface Headers<io.netty.util.ByteString>setObject in class DefaultHeaders<io.netty.util.ByteString>name - the name of the headers being setvalues - the values of the headers being setthispublic BinaryHeaders setObject(io.netty.util.ByteString name, Object... values)
Headers
headers.remove(name);
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
setObject in interface BinaryHeaderssetObject in interface Headers<io.netty.util.ByteString>setObject in class DefaultHeaders<io.netty.util.ByteString>name - the name of the headers being setvalues - the values of the headers being setthispublic BinaryHeaders setBoolean(io.netty.util.ByteString name, boolean value)
Headersname to value. This will remove all previous values associated with name.setBoolean in interface BinaryHeaderssetBoolean in interface Headers<io.netty.util.ByteString>setBoolean in class DefaultHeaders<io.netty.util.ByteString>name - The name to modifyvalue - The valuethispublic BinaryHeaders setChar(io.netty.util.ByteString name, char value)
Headersname to value. This will remove all previous values associated with name.setChar in interface BinaryHeaderssetChar in interface Headers<io.netty.util.ByteString>setChar in class DefaultHeaders<io.netty.util.ByteString>name - The name to modifyvalue - The valuethispublic BinaryHeaders setByte(io.netty.util.ByteString name, byte value)
Headersname to value. This will remove all previous values associated with name.setByte in interface BinaryHeaderssetByte in interface Headers<io.netty.util.ByteString>setByte in class DefaultHeaders<io.netty.util.ByteString>name - The name to modifyvalue - The valuethispublic BinaryHeaders setShort(io.netty.util.ByteString name, short value)
Headersname to value. This will remove all previous values associated with name.setShort in interface BinaryHeaderssetShort in interface Headers<io.netty.util.ByteString>setShort in class DefaultHeaders<io.netty.util.ByteString>name - The name to modifyvalue - The valuethispublic BinaryHeaders setInt(io.netty.util.ByteString name, int value)
Headersname to value. This will remove all previous values associated with name.setInt in interface BinaryHeaderssetInt in interface Headers<io.netty.util.ByteString>setInt in class DefaultHeaders<io.netty.util.ByteString>name - The name to modifyvalue - The valuethispublic BinaryHeaders setLong(io.netty.util.ByteString name, long value)
Headersname to value. This will remove all previous values associated with name.setLong in interface BinaryHeaderssetLong in interface Headers<io.netty.util.ByteString>setLong in class DefaultHeaders<io.netty.util.ByteString>name - The name to modifyvalue - The valuethispublic BinaryHeaders setFloat(io.netty.util.ByteString name, float value)
Headersname to value. This will remove all previous values associated with name.setFloat in interface BinaryHeaderssetFloat in interface Headers<io.netty.util.ByteString>setFloat in class DefaultHeaders<io.netty.util.ByteString>name - The name to modifyvalue - The valuethispublic BinaryHeaders setDouble(io.netty.util.ByteString name, double value)
Headersname to value. This will remove all previous values associated with name.setDouble in interface BinaryHeaderssetDouble in interface Headers<io.netty.util.ByteString>setDouble in class DefaultHeaders<io.netty.util.ByteString>name - The name to modifyvalue - The valuethispublic BinaryHeaders setTimeMillis(io.netty.util.ByteString name, long value)
Headersname to value. This will remove all previous values associated with name.setTimeMillis in interface BinaryHeaderssetTimeMillis in interface Headers<io.netty.util.ByteString>setTimeMillis in class DefaultHeaders<io.netty.util.ByteString>name - The name to modifyvalue - The valuethispublic BinaryHeaders set(BinaryHeaders headers)
BinaryHeadersset in interface BinaryHeaderspublic BinaryHeaders setAll(BinaryHeaders headers)
BinaryHeaderssetAll in interface BinaryHeaderspublic BinaryHeaders clear()
Headersclear in interface BinaryHeadersclear in interface Headers<io.netty.util.ByteString>clear in class DefaultHeaders<io.netty.util.ByteString>thisCopyright © 2008–2015 The Netty Project. All rights reserved.