public final class EmptyHttp2Headers extends EmptyHeaders<ByteString> implements Http2Headers
Http2Headers.PseudoHeaderName| Modifier and Type | Field and Description |
|---|---|
static EmptyHttp2Headers |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Http2Headers |
add(ByteString name,
ByteString... values)
Adds new headers with the specified
name and values. |
Http2Headers |
add(ByteString name,
ByteString value)
Adds a new header with the specified
name and value. |
Http2Headers |
add(ByteString name,
Iterable<? extends ByteString> values)
Adds new headers with the specified
name and values. |
Http2Headers |
add(Headers<? extends ByteString> headers)
Adds all header names and values of
headers to this object. |
Http2Headers |
addBoolean(ByteString name,
boolean value)
Adds a new header.
|
Http2Headers |
addByte(ByteString name,
byte value)
Adds a new header.
|
Http2Headers |
addChar(ByteString name,
char value)
Adds a new header.
|
Http2Headers |
addDouble(ByteString name,
double value)
Adds a new header.
|
Http2Headers |
addFloat(ByteString name,
float value)
Adds a new header.
|
Http2Headers |
addInt(ByteString name,
int value)
Adds a new header.
|
Http2Headers |
addLong(ByteString name,
long value)
Adds a new header.
|
Http2Headers |
addObject(ByteString name,
Iterable<?> values)
Adds a new header with the specified name and values.
|
Http2Headers |
addObject(ByteString name,
Object... values)
Adds a new header with the specified name and values.
|
Http2Headers |
addObject(ByteString name,
Object value)
Adds a new header.
|
Http2Headers |
addShort(ByteString name,
short value)
Adds a new header.
|
Http2Headers |
addTimeMillis(ByteString name,
long value)
Adds a new header.
|
ByteString |
authority()
Gets the
Http2Headers.PseudoHeaderName.AUTHORITY header or null if there is no such header |
EmptyHttp2Headers |
authority(ByteString authority)
Sets the
Http2Headers.PseudoHeaderName.AUTHORITY header or null if there is no such header |
Http2Headers |
clear()
Removes all headers.
|
ByteString |
method()
Gets the
Http2Headers.PseudoHeaderName.METHOD header or null if there is no such header |
EmptyHttp2Headers |
method(ByteString method)
Sets the
Http2Headers.PseudoHeaderName.METHOD header or null if there is no such header |
ByteString |
path()
Gets the
Http2Headers.PseudoHeaderName.PATH header or null if there is no such header |
EmptyHttp2Headers |
path(ByteString path)
Sets the
Http2Headers.PseudoHeaderName.PATH header or null if there is no such header |
ByteString |
scheme()
Gets the
Http2Headers.PseudoHeaderName.SCHEME header or null if there is no such header |
EmptyHttp2Headers |
scheme(ByteString status)
Sets the
Http2Headers.PseudoHeaderName.SCHEME header if there is no such header |
Http2Headers |
set(ByteString name,
ByteString... values)
Sets a header with the specified name and values.
|
Http2Headers |
set(ByteString name,
ByteString value)
Sets a header with the specified name and value.
|
Http2Headers |
set(ByteString name,
Iterable<? extends ByteString> values)
Sets a new header with the specified name and values.
|
Http2Headers |
set(Headers<? extends ByteString> headers)
Clears the current header entries and copies all header entries of the specified
headers. |
Http2Headers |
setAll(Headers<? extends ByteString> headers)
Retains all current headers but calls
#set(T, T) for each entry in headers. |
Http2Headers |
setBoolean(ByteString name,
boolean value)
Set the
name to value. |
Http2Headers |
setByte(ByteString name,
byte value)
Set the
name to value. |
Http2Headers |
setChar(ByteString name,
char value)
Set the
name to value. |
Http2Headers |
setDouble(ByteString name,
double value)
Set the
name to value. |
Http2Headers |
setFloat(ByteString name,
float value)
Set the
name to value. |
Http2Headers |
setInt(ByteString name,
int value)
Set the
name to value. |
Http2Headers |
setLong(ByteString name,
long value)
Set the
name to value. |
Http2Headers |
setObject(ByteString name,
Iterable<?> values)
Sets a header with the specified name and values.
|
Http2Headers |
setObject(ByteString name,
Object... values)
Sets a header with the specified name and values.
|
Http2Headers |
setObject(ByteString name,
Object value)
Sets a new header.
|
Http2Headers |
setShort(ByteString name,
short value)
Set the
name to value. |
Http2Headers |
setTimeMillis(ByteString name,
long value)
Set the
name to value. |
ByteString |
status()
Gets the
Http2Headers.PseudoHeaderName.STATUS header or null if there is no such header |
EmptyHttp2Headers |
status(ByteString status)
Sets the
Http2Headers.PseudoHeaderName.STATUS header or null if there is no such header |
contains, contains, containsBoolean, containsByte, containsChar, containsDouble, containsFloat, containsInt, containsLong, containsObject, containsShort, containsTimeMillis, equals, 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, getIntAndRemove, getIntAndRemove, getLong, getLong, getLongAndRemove, getLongAndRemove, getShort, getShort, getShortAndRemove, getShortAndRemove, getTimeMillis, getTimeMillis, getTimeMillisAndRemove, getTimeMillisAndRemove, hashCode, isEmpty, iterator, names, remove, size, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waititeratorcontains, contains, containsBoolean, containsByte, containsChar, containsDouble, containsFloat, containsInt, containsLong, containsObject, containsShort, containsTimeMillis, 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, getIntAndRemove, getIntAndRemove, getLong, getLong, getLongAndRemove, getLongAndRemove, getShort, getShort, getShortAndRemove, getShortAndRemove, getTimeMillis, getTimeMillis, getTimeMillisAndRemove, getTimeMillisAndRemove, isEmpty, names, remove, sizepublic static final EmptyHttp2Headers INSTANCE
public Http2Headers add(ByteString name, ByteString value)
Headersname and value.add in interface Headers<ByteString>add in interface Http2Headersadd in class EmptyHeaders<ByteString>name - the name of the headervalue - the value of the headerthispublic Http2Headers add(ByteString name, Iterable<? extends ByteString> values)
Headersname and values. This method is semantically equivalent to
for (T value : values) {
headers.add(name, value);
}
add in interface Headers<ByteString>add in interface Http2Headersadd in class EmptyHeaders<ByteString>name - the header namevalues - the values of the headerthispublic Http2Headers add(ByteString name, ByteString... values)
Headersname and values. This method is semantically equivalent to
for (T value : values) {
headers.add(name, value);
}
add in interface Headers<ByteString>add in interface Http2Headersadd in class EmptyHeaders<ByteString>name - the header namevalues - the values of the headerthispublic Http2Headers addObject(ByteString name, Object value)
Headersvalue is added, it's converted to type T.addObject in interface Headers<ByteString>addObject in interface Http2HeadersaddObject in class EmptyHeaders<ByteString>name - the header namevalue - the value of the headerthispublic Http2Headers addObject(ByteString name, Iterable<?> values)
Headers
for (Object v : values) {
headers.addObject(name, v);
}
addObject in interface Headers<ByteString>addObject in interface Http2HeadersaddObject in class EmptyHeaders<ByteString>name - the header namevalues - the value of the headerthispublic Http2Headers addObject(ByteString name, Object... values)
Headers
for (Object v : values) {
headers.addObject(name, v);
}
addObject in interface Headers<ByteString>addObject in interface Http2HeadersaddObject in class EmptyHeaders<ByteString>name - the header namevalues - the value of the headerthispublic Http2Headers addBoolean(ByteString name, boolean value)
HeadersaddBoolean in interface Headers<ByteString>addBoolean in interface Http2HeadersaddBoolean in class EmptyHeaders<ByteString>name - the header namevalue - the value of the headerthispublic Http2Headers addChar(ByteString name, char value)
HeadersaddChar in interface Headers<ByteString>addChar in interface Http2HeadersaddChar in class EmptyHeaders<ByteString>name - the header namevalue - the value of the headerthispublic Http2Headers addByte(ByteString name, byte value)
HeadersaddByte in interface Headers<ByteString>addByte in interface Http2HeadersaddByte in class EmptyHeaders<ByteString>name - the header namevalue - the value of the headerthispublic Http2Headers addShort(ByteString name, short value)
HeadersaddShort in interface Headers<ByteString>addShort in interface Http2HeadersaddShort in class EmptyHeaders<ByteString>name - the header namevalue - the value of the headerthispublic Http2Headers addInt(ByteString name, int value)
HeadersaddInt in interface Headers<ByteString>addInt in interface Http2HeadersaddInt in class EmptyHeaders<ByteString>name - the header namevalue - the value of the headerthispublic Http2Headers addLong(ByteString name, long value)
HeadersaddLong in interface Headers<ByteString>addLong in interface Http2HeadersaddLong in class EmptyHeaders<ByteString>name - the header namevalue - the value of the headerthispublic Http2Headers addFloat(ByteString name, float value)
HeadersaddFloat in interface Headers<ByteString>addFloat in interface Http2HeadersaddFloat in class EmptyHeaders<ByteString>name - the header namevalue - the value of the headerthispublic Http2Headers addDouble(ByteString name, double value)
HeadersaddDouble in interface Headers<ByteString>addDouble in interface Http2HeadersaddDouble in class EmptyHeaders<ByteString>name - the header namevalue - the value of the headerthispublic Http2Headers addTimeMillis(ByteString name, long value)
HeadersaddTimeMillis in interface Headers<ByteString>addTimeMillis in interface Http2HeadersaddTimeMillis in class EmptyHeaders<ByteString>name - the header namevalue - the value of the headerthispublic Http2Headers add(Headers<? extends ByteString> headers)
Headersheaders to this object.add in interface Headers<ByteString>add in interface Http2Headersadd in class EmptyHeaders<ByteString>thispublic Http2Headers set(ByteString name, ByteString value)
Headersset in interface Headers<ByteString>set in interface Http2Headersset in class EmptyHeaders<ByteString>name - the header namevalue - the value of the headerthispublic Http2Headers set(ByteString name, Iterable<? extends ByteString> values)
Headers
for (T v : values) {
headers.addObject(name, v);
}
set in interface Headers<ByteString>set in interface Http2Headersset in class EmptyHeaders<ByteString>name - the header namevalues - the value of the headerthispublic Http2Headers set(ByteString name, ByteString... values)
Headers
headers.remove(name);
for (T v : values) {
headers.add(name, v);
}
set in interface Headers<ByteString>set in interface Http2Headersset in class EmptyHeaders<ByteString>name - the header namevalues - the value of the headerthispublic Http2Headers setObject(ByteString name, Object value)
Headersvalue is add, it's
converted to type T.setObject in interface Headers<ByteString>setObject in interface Http2HeaderssetObject in class EmptyHeaders<ByteString>name - the header namevalue - the value of the headerthispublic Http2Headers setObject(ByteString name, Iterable<?> values)
Headers
headers.remove(name);
for (Object v : values) {
headers.addObject(name, v);
}
setObject in interface Headers<ByteString>setObject in interface Http2HeaderssetObject in class EmptyHeaders<ByteString>name - the header namevalues - the values of the headerthispublic Http2Headers setObject(ByteString name, Object... values)
Headers
headers.remove(name);
for (Object v : values) {
headers.addObject(name, v);
}
setObject in interface Headers<ByteString>setObject in interface Http2HeaderssetObject in class EmptyHeaders<ByteString>name - the header namevalues - the values of the headerthispublic Http2Headers setBoolean(ByteString name, boolean value)
Headersname to value. This will remove all previous values associated with name.setBoolean in interface Headers<ByteString>setBoolean in interface Http2HeaderssetBoolean in class EmptyHeaders<ByteString>name - The name to modifyvalue - The valuethispublic Http2Headers setChar(ByteString name, char value)
Headersname to value. This will remove all previous values associated with name.setChar in interface Headers<ByteString>setChar in interface Http2HeaderssetChar in class EmptyHeaders<ByteString>name - The name to modifyvalue - The valuethispublic Http2Headers setByte(ByteString name, byte value)
Headersname to value. This will remove all previous values associated with name.setByte in interface Headers<ByteString>setByte in interface Http2HeaderssetByte in class EmptyHeaders<ByteString>name - The name to modifyvalue - The valuethispublic Http2Headers setShort(ByteString name, short value)
Headersname to value. This will remove all previous values associated with name.setShort in interface Headers<ByteString>setShort in interface Http2HeaderssetShort in class EmptyHeaders<ByteString>name - The name to modifyvalue - The valuethispublic Http2Headers setInt(ByteString name, int value)
Headersname to value. This will remove all previous values associated with name.setInt in interface Headers<ByteString>setInt in interface Http2HeaderssetInt in class EmptyHeaders<ByteString>name - The name to modifyvalue - The valuethispublic Http2Headers setLong(ByteString name, long value)
Headersname to value. This will remove all previous values associated with name.setLong in interface Headers<ByteString>setLong in interface Http2HeaderssetLong in class EmptyHeaders<ByteString>name - The name to modifyvalue - The valuethispublic Http2Headers setFloat(ByteString name, float value)
Headersname to value. This will remove all previous values associated with name.setFloat in interface Headers<ByteString>setFloat in interface Http2HeaderssetFloat in class EmptyHeaders<ByteString>name - The name to modifyvalue - The valuethispublic Http2Headers setDouble(ByteString name, double value)
Headersname to value. This will remove all previous values associated with name.setDouble in interface Headers<ByteString>setDouble in interface Http2HeaderssetDouble in class EmptyHeaders<ByteString>name - The name to modifyvalue - The valuethispublic Http2Headers setTimeMillis(ByteString name, long value)
Headersname to value. This will remove all previous values associated with name.setTimeMillis in interface Headers<ByteString>setTimeMillis in interface Http2HeaderssetTimeMillis in class EmptyHeaders<ByteString>name - The name to modifyvalue - The valuethispublic Http2Headers set(Headers<? extends ByteString> headers)
Headersheaders.set in interface Headers<ByteString>set in interface Http2Headersset in class EmptyHeaders<ByteString>thispublic Http2Headers setAll(Headers<? extends ByteString> headers)
Headers#set(T, T) for each entry in headers.setAll in interface Headers<ByteString>setAll in interface Http2HeaderssetAll in class EmptyHeaders<ByteString>headers - The headers used to #set(T, T) values in this instancethispublic Http2Headers clear()
HeadersHeaders.size() equals 0.clear in interface Headers<ByteString>clear in interface Http2Headersclear in class EmptyHeaders<ByteString>thispublic EmptyHttp2Headers method(ByteString method)
Http2HeadersHttp2Headers.PseudoHeaderName.METHOD header or null if there is no such headermethod in interface Http2Headerspublic EmptyHttp2Headers scheme(ByteString status)
Http2HeadersHttp2Headers.PseudoHeaderName.SCHEME header if there is no such headerscheme in interface Http2Headerspublic EmptyHttp2Headers authority(ByteString authority)
Http2HeadersHttp2Headers.PseudoHeaderName.AUTHORITY header or null if there is no such headerauthority in interface Http2Headerspublic EmptyHttp2Headers path(ByteString path)
Http2HeadersHttp2Headers.PseudoHeaderName.PATH header or null if there is no such headerpath in interface Http2Headerspublic EmptyHttp2Headers status(ByteString status)
Http2HeadersHttp2Headers.PseudoHeaderName.STATUS header or null if there is no such headerstatus in interface Http2Headerspublic ByteString method()
Http2HeadersHttp2Headers.PseudoHeaderName.METHOD header or null if there is no such headermethod in interface Http2Headerspublic ByteString scheme()
Http2HeadersHttp2Headers.PseudoHeaderName.SCHEME header or null if there is no such headerscheme in interface Http2Headerspublic ByteString authority()
Http2HeadersHttp2Headers.PseudoHeaderName.AUTHORITY header or null if there is no such headerauthority in interface Http2Headerspublic ByteString path()
Http2HeadersHttp2Headers.PseudoHeaderName.PATH header or null if there is no such headerpath in interface Http2Headerspublic ByteString status()
Http2HeadersHttp2Headers.PseudoHeaderName.STATUS header or null if there is no such headerstatus in interface Http2HeadersCopyright © 2008–2015 The Netty Project. All rights reserved.