public class DefaultSpdyHeaders extends DefaultTextHeaders implements SpdyHeaders
DefaultTextHeaders.DefaultTextValueTypeConverterDefaultHeaders.HashCodeGenerator<T>, DefaultHeaders.IdentityNameConverter<T>, DefaultHeaders.KeyValueHeaderIterator, DefaultHeaders.NameConverter<T>SpdyHeaders.HttpNamesTextHeaders.EntryVisitor, TextHeaders.NameVisitorConvertibleHeaders.TypeConverter<UnconvertedType,ConvertedType>Headers.ValueConverter<T>| Constructor and Description |
|---|
DefaultSpdyHeaders() |
| Modifier and Type | Method and Description |
|---|---|
SpdyHeaders |
add(CharSequence name,
CharSequence... values)
Adds a new header with the specified name and values.
|
SpdyHeaders |
add(CharSequence name,
CharSequence value)
Adds a new header with the specified name and value.
|
SpdyHeaders |
add(CharSequence name,
Iterable<? extends CharSequence> values)
Adds a new header with the specified name and values.
|
SpdyHeaders |
add(TextHeaders headers)
|
SpdyHeaders |
addBoolean(CharSequence name,
boolean value)
Add the
name to value. |
SpdyHeaders |
addByte(CharSequence name,
byte value)
Add the
name to value. |
SpdyHeaders |
addChar(CharSequence name,
char value)
Add the
name to value. |
SpdyHeaders |
addDouble(CharSequence name,
double value)
Add the
name to value. |
SpdyHeaders |
addFloat(CharSequence name,
float value)
Add the
name to value. |
SpdyHeaders |
addInt(CharSequence name,
int value)
Add the
name to value. |
SpdyHeaders |
addLong(CharSequence name,
long value)
Add the
name to value. |
SpdyHeaders |
addObject(CharSequence name,
Iterable<?> values)
Adds a new header with the specified name and values.
|
SpdyHeaders |
addObject(CharSequence name,
Object... values)
Adds a new header with the specified name and values.
|
SpdyHeaders |
addObject(CharSequence name,
Object value)
Adds a new header with the specified name and value.
|
SpdyHeaders |
addShort(CharSequence name,
short value)
Add the
name to value. |
SpdyHeaders |
addTimeMillis(CharSequence name,
long value)
Add the
name to value. |
SpdyHeaders |
clear()
Removes all headers.
|
SpdyHeaders |
set(CharSequence name,
CharSequence... values)
Sets a header with the specified name and values.
|
SpdyHeaders |
set(CharSequence name,
CharSequence value)
Sets a header with the specified name and value.
|
SpdyHeaders |
set(CharSequence name,
Iterable<? extends CharSequence> values)
Sets a header with the specified name and values.
|
SpdyHeaders |
set(TextHeaders headers)
|
SpdyHeaders |
setAll(TextHeaders headers)
|
SpdyHeaders |
setBoolean(CharSequence name,
boolean value)
Set the
name to value. |
SpdyHeaders |
setByte(CharSequence name,
byte value)
Set the
name to value. |
SpdyHeaders |
setChar(CharSequence name,
char value)
Set the
name to value. |
SpdyHeaders |
setDouble(CharSequence name,
double value)
Set the
name to value. |
SpdyHeaders |
setFloat(CharSequence name,
float value)
Set the
name to value. |
SpdyHeaders |
setInt(CharSequence name,
int value)
Set the
name to value. |
SpdyHeaders |
setLong(CharSequence name,
long value)
Set the
name to value. |
SpdyHeaders |
setObject(CharSequence name,
Iterable<?> values)
Sets a header with the specified name and values.
|
SpdyHeaders |
setObject(CharSequence name,
Object... values)
Sets a header with the specified name and values.
|
SpdyHeaders |
setObject(CharSequence name,
Object value)
Sets a header with the specified name and value.
|
SpdyHeaders |
setShort(CharSequence name,
short value)
Set the
name to value. |
SpdyHeaders |
setTimeMillis(CharSequence name,
long value)
Set the
name to value. |
contains, containsObjectentriesConverted, getAllAndConvert, getAllAndRemoveAndConvert, getAndConvert, getAndConvert, getAndRemoveAndConvert, getAndRemoveAndConvert, iteratorConverted, namesAndConvertadd, 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, waitcontains, containsObjectentriesConverted, getAllAndConvert, getAllAndRemoveAndConvert, getAndConvert, getAndConvert, getAndRemoveAndConvert, getAndRemoveAndConvert, iteratorConverted, namesAndConvertadd, 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, sizepublic SpdyHeaders add(CharSequence name, CharSequence 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 Headers<CharSequence>add in interface SpdyHeadersadd in interface TextHeadersadd in class DefaultTextHeadersname - the name of the header being addedvalue - the value of the header being addedthispublic SpdyHeaders add(CharSequence name, Iterable<? extends CharSequence> values)
Headers
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
add in interface Headers<CharSequence>add in interface SpdyHeadersadd in interface TextHeadersadd in class DefaultTextHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic SpdyHeaders add(CharSequence name, CharSequence... values)
Headers
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
add in interface Headers<CharSequence>add in interface SpdyHeadersadd in interface TextHeadersadd in class DefaultTextHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic SpdyHeaders addObject(CharSequence 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 Headers<CharSequence>addObject in interface SpdyHeadersaddObject in interface TextHeadersaddObject in class DefaultTextHeadersname - the name of the header being addedvalue - the value of the header being addedthispublic SpdyHeaders addObject(CharSequence name, Iterable<?> values)
Headers
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
addObject in interface Headers<CharSequence>addObject in interface SpdyHeadersaddObject in interface TextHeadersaddObject in class DefaultTextHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic SpdyHeaders addObject(CharSequence name, Object... values)
Headers
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
addObject in interface Headers<CharSequence>addObject in interface SpdyHeadersaddObject in interface TextHeadersaddObject in class DefaultTextHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic SpdyHeaders addBoolean(CharSequence name, boolean value)
Headersname to value.addBoolean in interface Headers<CharSequence>addBoolean in interface SpdyHeadersaddBoolean in interface TextHeadersaddBoolean in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic SpdyHeaders addChar(CharSequence name, char value)
Headersname to value.addChar in interface Headers<CharSequence>addChar in interface SpdyHeadersaddChar in interface TextHeadersaddChar in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic SpdyHeaders addByte(CharSequence name, byte value)
Headersname to value.addByte in interface Headers<CharSequence>addByte in interface SpdyHeadersaddByte in interface TextHeadersaddByte in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic SpdyHeaders addShort(CharSequence name, short value)
Headersname to value.addShort in interface Headers<CharSequence>addShort in interface SpdyHeadersaddShort in interface TextHeadersaddShort in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic SpdyHeaders addInt(CharSequence name, int value)
Headersname to value.addInt in interface Headers<CharSequence>addInt in interface SpdyHeadersaddInt in interface TextHeadersaddInt in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic SpdyHeaders addLong(CharSequence name, long value)
Headersname to value.addLong in interface Headers<CharSequence>addLong in interface SpdyHeadersaddLong in interface TextHeadersaddLong in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic SpdyHeaders addFloat(CharSequence name, float value)
Headersname to value.addFloat in interface Headers<CharSequence>addFloat in interface SpdyHeadersaddFloat in interface TextHeadersaddFloat in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic SpdyHeaders addDouble(CharSequence name, double value)
Headersname to value.addDouble in interface Headers<CharSequence>addDouble in interface SpdyHeadersaddDouble in interface TextHeadersaddDouble in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic SpdyHeaders addTimeMillis(CharSequence name, long value)
Headersname to value.addTimeMillis in interface Headers<CharSequence>addTimeMillis in interface SpdyHeadersaddTimeMillis in interface TextHeadersaddTimeMillis in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic SpdyHeaders add(TextHeaders headers)
TextHeadersadd in interface SpdyHeadersadd in interface TextHeadersadd in class DefaultTextHeaderspublic SpdyHeaders set(CharSequence name, CharSequence 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 Headers<CharSequence>set in interface SpdyHeadersset in interface TextHeadersset in class DefaultTextHeadersname - The name of the header being setvalue - The value of the header being setthispublic SpdyHeaders set(CharSequence name, Iterable<? extends CharSequence> values)
Headers
headers.remove(name);
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
set in interface Headers<CharSequence>set in interface SpdyHeadersset in interface TextHeadersset in class DefaultTextHeadersname - the name of the headers being setvalues - the values of the headers being setthispublic SpdyHeaders set(CharSequence name, CharSequence... values)
Headers
headers.remove(name);
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
set in interface Headers<CharSequence>set in interface SpdyHeadersset in interface TextHeadersset in class DefaultTextHeadersname - the name of the headers being setvalues - the values of the headers being setthispublic SpdyHeaders setObject(CharSequence 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 Headers<CharSequence>setObject in interface SpdyHeaderssetObject in interface TextHeaderssetObject in class DefaultTextHeadersname - The name of the header being setvalue - The value of the header being setthispublic SpdyHeaders setObject(CharSequence name, Iterable<?> values)
Headers
headers.remove(name);
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
setObject in interface Headers<CharSequence>setObject in interface SpdyHeaderssetObject in interface TextHeaderssetObject in class DefaultTextHeadersname - the name of the headers being setvalues - the values of the headers being setthispublic SpdyHeaders setObject(CharSequence name, Object... values)
Headers
headers.remove(name);
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
setObject in interface Headers<CharSequence>setObject in interface SpdyHeaderssetObject in interface TextHeaderssetObject in class DefaultTextHeadersname - the name of the headers being setvalues - the values of the headers being setthispublic SpdyHeaders setBoolean(CharSequence name, boolean value)
Headersname to value. This will remove all previous values associated with name.setBoolean in interface Headers<CharSequence>setBoolean in interface SpdyHeaderssetBoolean in interface TextHeaderssetBoolean in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic SpdyHeaders setChar(CharSequence name, char value)
Headersname to value. This will remove all previous values associated with name.setChar in interface Headers<CharSequence>setChar in interface SpdyHeaderssetChar in interface TextHeaderssetChar in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic SpdyHeaders setByte(CharSequence name, byte value)
Headersname to value. This will remove all previous values associated with name.setByte in interface Headers<CharSequence>setByte in interface SpdyHeaderssetByte in interface TextHeaderssetByte in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic SpdyHeaders setShort(CharSequence name, short value)
Headersname to value. This will remove all previous values associated with name.setShort in interface Headers<CharSequence>setShort in interface SpdyHeaderssetShort in interface TextHeaderssetShort in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic SpdyHeaders setInt(CharSequence name, int value)
Headersname to value. This will remove all previous values associated with name.setInt in interface Headers<CharSequence>setInt in interface SpdyHeaderssetInt in interface TextHeaderssetInt in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic SpdyHeaders setLong(CharSequence name, long value)
Headersname to value. This will remove all previous values associated with name.setLong in interface Headers<CharSequence>setLong in interface SpdyHeaderssetLong in interface TextHeaderssetLong in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic SpdyHeaders setFloat(CharSequence name, float value)
Headersname to value. This will remove all previous values associated with name.setFloat in interface Headers<CharSequence>setFloat in interface SpdyHeaderssetFloat in interface TextHeaderssetFloat in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic SpdyHeaders setDouble(CharSequence name, double value)
Headersname to value. This will remove all previous values associated with name.setDouble in interface Headers<CharSequence>setDouble in interface SpdyHeaderssetDouble in interface TextHeaderssetDouble in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic SpdyHeaders setTimeMillis(CharSequence name, long value)
Headersname to value. This will remove all previous values associated with name.setTimeMillis in interface Headers<CharSequence>setTimeMillis in interface SpdyHeaderssetTimeMillis in interface TextHeaderssetTimeMillis in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic SpdyHeaders set(TextHeaders headers)
TextHeadersset in interface SpdyHeadersset in interface TextHeadersset in class DefaultTextHeaderspublic SpdyHeaders setAll(TextHeaders headers)
TextHeaderssetAll in interface SpdyHeaderssetAll in interface TextHeaderssetAll in class DefaultTextHeaderspublic SpdyHeaders clear()
Headersclear in interface Headers<CharSequence>clear in interface SpdyHeadersclear in interface TextHeadersclear in class DefaultTextHeadersthisCopyright © 2008–2015 The Netty Project. All rights reserved.