public final class EmptyHttp2Headers extends EmptyBinaryHeaders implements Http2Headers
Http2Headers.PseudoHeaderNameBinaryHeaders.EntryVisitor, BinaryHeaders.NameVisitorHeaders.ValueConverter<T>| Modifier and Type | Field and Description |
|---|---|
static EmptyHttp2Headers |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Http2Headers |
add(AsciiString name,
AsciiString... values)
Adds a new header with the specified name and values.
|
Http2Headers |
add(AsciiString name,
AsciiString value)
Adds a new header with the specified name and value.
|
Http2Headers |
add(AsciiString name,
Iterable<? extends AsciiString> values)
Adds a new header with the specified name and values.
|
Http2Headers |
add(BinaryHeaders headers)
|
Http2Headers |
addBoolean(AsciiString name,
boolean value)
Add the
name to value. |
Http2Headers |
addByte(AsciiString name,
byte value)
Add the
name to value. |
Http2Headers |
addChar(AsciiString name,
char value)
Add the
name to value. |
Http2Headers |
addDouble(AsciiString name,
double value)
Add the
name to value. |
Http2Headers |
addFloat(AsciiString name,
float value)
Add the
name to value. |
Http2Headers |
addInt(AsciiString name,
int value)
Add the
name to value. |
Http2Headers |
addLong(AsciiString name,
long value)
Add the
name to value. |
Http2Headers |
addObject(AsciiString name,
Iterable<?> values)
Adds a new header with the specified name and values.
|
Http2Headers |
addObject(AsciiString name,
Object... values)
Adds a new header with the specified name and values.
|
Http2Headers |
addObject(AsciiString name,
Object value)
Adds a new header with the specified name and value.
|
Http2Headers |
addShort(AsciiString name,
short value)
Add the
name to value. |
Http2Headers |
addTimeMillis(AsciiString name,
long value)
Add the
name to value. |
AsciiString |
authority()
Gets the
Http2Headers.PseudoHeaderName.AUTHORITY header or null if there is no such header |
EmptyHttp2Headers |
authority(AsciiString authority)
Sets the
Http2Headers.PseudoHeaderName.AUTHORITY header or null if there is no such header |
Http2Headers |
clear()
Removes all headers.
|
AsciiString |
method()
Gets the
Http2Headers.PseudoHeaderName.METHOD header or null if there is no such header |
EmptyHttp2Headers |
method(AsciiString method)
Sets the
Http2Headers.PseudoHeaderName.METHOD header or null if there is no such header |
AsciiString |
path()
Gets the
Http2Headers.PseudoHeaderName.PATH header or null if there is no such header |
EmptyHttp2Headers |
path(AsciiString path)
Sets the
Http2Headers.PseudoHeaderName.PATH header or null if there is no such header |
AsciiString |
scheme()
Gets the
Http2Headers.PseudoHeaderName.SCHEME header or null if there is no such header |
EmptyHttp2Headers |
scheme(AsciiString status)
Sets the
Http2Headers.PseudoHeaderName.SCHEME header if there is no such header |
Http2Headers |
set(AsciiString name,
AsciiString... values)
Sets a header with the specified name and values.
|
Http2Headers |
set(AsciiString name,
AsciiString value)
Sets a header with the specified name and value.
|
Http2Headers |
set(AsciiString name,
Iterable<? extends AsciiString> values)
Sets a header with the specified name and values.
|
Http2Headers |
set(BinaryHeaders headers)
|
Http2Headers |
setAll(BinaryHeaders headers)
|
Http2Headers |
setBoolean(AsciiString name,
boolean value)
Set the
name to value. |
Http2Headers |
setByte(AsciiString name,
byte value)
Set the
name to value. |
Http2Headers |
setChar(AsciiString name,
char value)
Set the
name to value. |
Http2Headers |
setDouble(AsciiString name,
double value)
Set the
name to value. |
Http2Headers |
setFloat(AsciiString name,
float value)
Set the
name to value. |
Http2Headers |
setInt(AsciiString name,
int value)
Set the
name to value. |
Http2Headers |
setLong(AsciiString name,
long value)
Set the
name to value. |
Http2Headers |
setObject(AsciiString name,
Iterable<?> values)
Sets a header with the specified name and values.
|
Http2Headers |
setObject(AsciiString name,
Object... values)
Sets a header with the specified name and values.
|
Http2Headers |
setObject(AsciiString name,
Object value)
Sets a header with the specified name and value.
|
Http2Headers |
setShort(AsciiString name,
short value)
Set the
name to value. |
Http2Headers |
setTimeMillis(AsciiString name,
long value)
Set the
name to value. |
AsciiString |
status()
Gets the
Http2Headers.PseudoHeaderName.STATUS header or null if there is no such header |
EmptyHttp2Headers |
status(AsciiString status)
Sets the
Http2Headers.PseudoHeaderName.STATUS header or null if there is no such header |
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, toStringclone, 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, sizepublic static final EmptyHttp2Headers INSTANCE
public Http2Headers add(AsciiString name, AsciiString 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<AsciiString>add in interface Http2Headersadd in class EmptyBinaryHeadersname - the name of the header being addedvalue - the value of the header being addedthispublic Http2Headers add(AsciiString name, Iterable<? extends AsciiString> values)
Headers
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
add in interface BinaryHeadersadd in interface Headers<AsciiString>add in interface Http2Headersadd in class EmptyBinaryHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic Http2Headers add(AsciiString name, AsciiString... values)
Headers
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
add in interface BinaryHeadersadd in interface Headers<AsciiString>add in interface Http2Headersadd in class EmptyBinaryHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic Http2Headers addObject(AsciiString 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<AsciiString>addObject in interface Http2HeadersaddObject in class EmptyBinaryHeadersname - the name of the header being addedvalue - the value of the header being addedthispublic Http2Headers addObject(AsciiString name, Iterable<?> values)
Headers
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
addObject in interface BinaryHeadersaddObject in interface Headers<AsciiString>addObject in interface Http2HeadersaddObject in class EmptyBinaryHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic Http2Headers addObject(AsciiString name, Object... values)
Headers
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
addObject in interface BinaryHeadersaddObject in interface Headers<AsciiString>addObject in interface Http2HeadersaddObject in class EmptyBinaryHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic Http2Headers addBoolean(AsciiString name, boolean value)
Headersname to value.addBoolean in interface BinaryHeadersaddBoolean in interface Headers<AsciiString>addBoolean in interface Http2HeadersaddBoolean in class EmptyBinaryHeadersname - The name to modifyvalue - The valuethispublic Http2Headers addChar(AsciiString name, char value)
Headersname to value.addChar in interface BinaryHeadersaddChar in interface Headers<AsciiString>addChar in interface Http2HeadersaddChar in class EmptyBinaryHeadersname - The name to modifyvalue - The valuethispublic Http2Headers addByte(AsciiString name, byte value)
Headersname to value.addByte in interface BinaryHeadersaddByte in interface Headers<AsciiString>addByte in interface Http2HeadersaddByte in class EmptyBinaryHeadersname - The name to modifyvalue - The valuethispublic Http2Headers addShort(AsciiString name, short value)
Headersname to value.addShort in interface BinaryHeadersaddShort in interface Headers<AsciiString>addShort in interface Http2HeadersaddShort in class EmptyBinaryHeadersname - The name to modifyvalue - The valuethispublic Http2Headers addInt(AsciiString name, int value)
Headersname to value.addInt in interface BinaryHeadersaddInt in interface Headers<AsciiString>addInt in interface Http2HeadersaddInt in class EmptyBinaryHeadersname - The name to modifyvalue - The valuethispublic Http2Headers addLong(AsciiString name, long value)
Headersname to value.addLong in interface BinaryHeadersaddLong in interface Headers<AsciiString>addLong in interface Http2HeadersaddLong in class EmptyBinaryHeadersname - The name to modifyvalue - The valuethispublic Http2Headers addFloat(AsciiString name, float value)
Headersname to value.addFloat in interface BinaryHeadersaddFloat in interface Headers<AsciiString>addFloat in interface Http2HeadersaddFloat in class EmptyBinaryHeadersname - The name to modifyvalue - The valuethispublic Http2Headers addDouble(AsciiString name, double value)
Headersname to value.addDouble in interface BinaryHeadersaddDouble in interface Headers<AsciiString>addDouble in interface Http2HeadersaddDouble in class EmptyBinaryHeadersname - The name to modifyvalue - The valuethispublic Http2Headers addTimeMillis(AsciiString name, long value)
Headersname to value.addTimeMillis in interface BinaryHeadersaddTimeMillis in interface Headers<AsciiString>addTimeMillis in interface Http2HeadersaddTimeMillis in class EmptyBinaryHeadersname - The name to modifyvalue - The valuethispublic Http2Headers add(BinaryHeaders headers)
BinaryHeadersadd in interface BinaryHeadersadd in interface Http2Headersadd in class EmptyBinaryHeaderspublic Http2Headers set(AsciiString name, AsciiString 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<AsciiString>set in interface Http2Headersset in class EmptyBinaryHeadersname - The name of the header being setvalue - The value of the header being setthispublic Http2Headers set(AsciiString name, Iterable<? extends AsciiString> values)
Headers
headers.remove(name);
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
set in interface BinaryHeadersset in interface Headers<AsciiString>set in interface Http2Headersset in class EmptyBinaryHeadersname - the name of the headers being setvalues - the values of the headers being setthispublic Http2Headers set(AsciiString name, AsciiString... values)
Headers
headers.remove(name);
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
set in interface BinaryHeadersset in interface Headers<AsciiString>set in interface Http2Headersset in class EmptyBinaryHeadersname - the name of the headers being setvalues - the values of the headers being setthispublic Http2Headers setObject(AsciiString 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<AsciiString>setObject in interface Http2HeaderssetObject in class EmptyBinaryHeadersname - The name of the header being setvalue - The value of the header being setthispublic Http2Headers setObject(AsciiString 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<AsciiString>setObject in interface Http2HeaderssetObject in class EmptyBinaryHeadersname - the name of the headers being setvalues - the values of the headers being setthispublic Http2Headers setObject(AsciiString 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<AsciiString>setObject in interface Http2HeaderssetObject in class EmptyBinaryHeadersname - the name of the headers being setvalues - the values of the headers being setthispublic Http2Headers setBoolean(AsciiString name, boolean value)
Headersname to value. This will remove all previous values associated with name.setBoolean in interface BinaryHeaderssetBoolean in interface Headers<AsciiString>setBoolean in interface Http2HeaderssetBoolean in class EmptyBinaryHeadersname - The name to modifyvalue - The valuethispublic Http2Headers setChar(AsciiString name, char value)
Headersname to value. This will remove all previous values associated with name.setChar in interface BinaryHeaderssetChar in interface Headers<AsciiString>setChar in interface Http2HeaderssetChar in class EmptyBinaryHeadersname - The name to modifyvalue - The valuethispublic Http2Headers setByte(AsciiString name, byte value)
Headersname to value. This will remove all previous values associated with name.setByte in interface BinaryHeaderssetByte in interface Headers<AsciiString>setByte in interface Http2HeaderssetByte in class EmptyBinaryHeadersname - The name to modifyvalue - The valuethispublic Http2Headers setShort(AsciiString name, short value)
Headersname to value. This will remove all previous values associated with name.setShort in interface BinaryHeaderssetShort in interface Headers<AsciiString>setShort in interface Http2HeaderssetShort in class EmptyBinaryHeadersname - The name to modifyvalue - The valuethispublic Http2Headers setInt(AsciiString name, int value)
Headersname to value. This will remove all previous values associated with name.setInt in interface BinaryHeaderssetInt in interface Headers<AsciiString>setInt in interface Http2HeaderssetInt in class EmptyBinaryHeadersname - The name to modifyvalue - The valuethispublic Http2Headers setLong(AsciiString name, long value)
Headersname to value. This will remove all previous values associated with name.setLong in interface BinaryHeaderssetLong in interface Headers<AsciiString>setLong in interface Http2HeaderssetLong in class EmptyBinaryHeadersname - The name to modifyvalue - The valuethispublic Http2Headers setFloat(AsciiString name, float value)
Headersname to value. This will remove all previous values associated with name.setFloat in interface BinaryHeaderssetFloat in interface Headers<AsciiString>setFloat in interface Http2HeaderssetFloat in class EmptyBinaryHeadersname - The name to modifyvalue - The valuethispublic Http2Headers setDouble(AsciiString name, double value)
Headersname to value. This will remove all previous values associated with name.setDouble in interface BinaryHeaderssetDouble in interface Headers<AsciiString>setDouble in interface Http2HeaderssetDouble in class EmptyBinaryHeadersname - The name to modifyvalue - The valuethispublic Http2Headers setTimeMillis(AsciiString name, long value)
Headersname to value. This will remove all previous values associated with name.setTimeMillis in interface BinaryHeaderssetTimeMillis in interface Headers<AsciiString>setTimeMillis in interface Http2HeaderssetTimeMillis in class EmptyBinaryHeadersname - The name to modifyvalue - The valuethispublic Http2Headers set(BinaryHeaders headers)
BinaryHeadersset in interface BinaryHeadersset in interface Http2Headersset in class EmptyBinaryHeaderspublic Http2Headers setAll(BinaryHeaders headers)
BinaryHeaderssetAll in interface BinaryHeaderssetAll in interface Http2HeaderssetAll in class EmptyBinaryHeaderspublic Http2Headers clear()
Headersclear in interface BinaryHeadersclear in interface Headers<AsciiString>clear in interface Http2Headersclear in class EmptyBinaryHeadersthispublic EmptyHttp2Headers method(AsciiString method)
Http2HeadersHttp2Headers.PseudoHeaderName.METHOD header or null if there is no such headermethod in interface Http2Headerspublic EmptyHttp2Headers scheme(AsciiString status)
Http2HeadersHttp2Headers.PseudoHeaderName.SCHEME header if there is no such headerscheme in interface Http2Headerspublic EmptyHttp2Headers authority(AsciiString authority)
Http2HeadersHttp2Headers.PseudoHeaderName.AUTHORITY header or null if there is no such headerauthority in interface Http2Headerspublic EmptyHttp2Headers path(AsciiString path)
Http2HeadersHttp2Headers.PseudoHeaderName.PATH header or null if there is no such headerpath in interface Http2Headerspublic EmptyHttp2Headers status(AsciiString status)
Http2HeadersHttp2Headers.PseudoHeaderName.STATUS header or null if there is no such headerstatus in interface Http2Headerspublic AsciiString method()
Http2HeadersHttp2Headers.PseudoHeaderName.METHOD header or null if there is no such headermethod in interface Http2Headerspublic AsciiString scheme()
Http2HeadersHttp2Headers.PseudoHeaderName.SCHEME header or null if there is no such headerscheme in interface Http2Headerspublic AsciiString authority()
Http2HeadersHttp2Headers.PseudoHeaderName.AUTHORITY header or null if there is no such headerauthority in interface Http2Headerspublic AsciiString path()
Http2HeadersHttp2Headers.PseudoHeaderName.PATH header or null if there is no such headerpath in interface Http2Headerspublic AsciiString status()
Http2HeadersHttp2Headers.PseudoHeaderName.STATUS header or null if there is no such headerstatus in interface Http2HeadersCopyright © 2008–2015 The Netty Project. All rights reserved.