public interface Http2Headers extends BinaryHeaders
Modifier and Type | Interface and Description |
---|---|
static class |
Http2Headers.PseudoHeaderName
HTTP/2 pseudo-headers names.
|
BinaryHeaders.EntryVisitor, BinaryHeaders.NameVisitor
Headers.ValueConverter<T>
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 |
Http2Headers |
authority(AsciiString value)
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 |
Http2Headers |
method(AsciiString value)
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 |
Http2Headers |
path(AsciiString value)
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 |
Http2Headers |
scheme(AsciiString value)
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 |
Http2Headers |
status(AsciiString value)
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, 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, size
Http2Headers add(AsciiString name, AsciiString value)
Headers
String
, 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 BinaryHeaders
add
in interface Headers<AsciiString>
name
- the name of the header being addedvalue
- the value of the header being addedthis
Http2Headers add(AsciiString name, Iterable<? extends AsciiString> values)
Headers
for (Object v : values) { if (v == null) { break; } headers.add(name, v); }
add
in interface BinaryHeaders
add
in interface Headers<AsciiString>
name
- the name of the headepublic abstract rs being setvalues
- the values of the headers being setthis
Http2Headers add(AsciiString name, AsciiString... values)
Headers
for (Object v : values) { if (v == null) { break; } headers.add(name, v); }
add
in interface BinaryHeaders
add
in interface Headers<AsciiString>
name
- the name of the headepublic abstract rs being setvalues
- the values of the headers being setthis
Http2Headers addObject(AsciiString name, Object value)
Headers
String
, 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 BinaryHeaders
addObject
in interface Headers<AsciiString>
name
- the name of the header being addedvalue
- the value of the header being addedthis
Http2Headers addObject(AsciiString name, Iterable<?> values)
Headers
for (Object v : values) { if (v == null) { break; } headers.add(name, v); }
addObject
in interface BinaryHeaders
addObject
in interface Headers<AsciiString>
name
- the name of the headepublic abstract rs being setvalues
- the values of the headers being setthis
Http2Headers addObject(AsciiString name, Object... values)
Headers
for (Object v : values) { if (v == null) { break; } headers.add(name, v); }
addObject
in interface BinaryHeaders
addObject
in interface Headers<AsciiString>
name
- the name of the headepublic abstract rs being setvalues
- the values of the headers being setthis
Http2Headers addBoolean(AsciiString name, boolean value)
Headers
name
to value
.addBoolean
in interface BinaryHeaders
addBoolean
in interface Headers<AsciiString>
name
- The name to modifyvalue
- The valuethis
Http2Headers addByte(AsciiString name, byte value)
Headers
name
to value
.addByte
in interface BinaryHeaders
addByte
in interface Headers<AsciiString>
name
- The name to modifyvalue
- The valuethis
Http2Headers addChar(AsciiString name, char value)
Headers
name
to value
.addChar
in interface BinaryHeaders
addChar
in interface Headers<AsciiString>
name
- The name to modifyvalue
- The valuethis
Http2Headers addShort(AsciiString name, short value)
Headers
name
to value
.addShort
in interface BinaryHeaders
addShort
in interface Headers<AsciiString>
name
- The name to modifyvalue
- The valuethis
Http2Headers addInt(AsciiString name, int value)
Headers
name
to value
.addInt
in interface BinaryHeaders
addInt
in interface Headers<AsciiString>
name
- The name to modifyvalue
- The valuethis
Http2Headers addLong(AsciiString name, long value)
Headers
name
to value
.addLong
in interface BinaryHeaders
addLong
in interface Headers<AsciiString>
name
- The name to modifyvalue
- The valuethis
Http2Headers addFloat(AsciiString name, float value)
Headers
name
to value
.addFloat
in interface BinaryHeaders
addFloat
in interface Headers<AsciiString>
name
- The name to modifyvalue
- The valuethis
Http2Headers addDouble(AsciiString name, double value)
Headers
name
to value
.addDouble
in interface BinaryHeaders
addDouble
in interface Headers<AsciiString>
name
- The name to modifyvalue
- The valuethis
Http2Headers addTimeMillis(AsciiString name, long value)
Headers
name
to value
.addTimeMillis
in interface BinaryHeaders
addTimeMillis
in interface Headers<AsciiString>
name
- The name to modifyvalue
- The valuethis
Http2Headers add(BinaryHeaders headers)
BinaryHeaders
add
in interface BinaryHeaders
Http2Headers set(AsciiString name, AsciiString value)
Headers
String
, 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 BinaryHeaders
set
in interface Headers<AsciiString>
name
- The name of the header being setvalue
- The value of the header being setthis
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 BinaryHeaders
set
in interface Headers<AsciiString>
name
- the name of the headers being setvalues
- the values of the headers being setthis
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 BinaryHeaders
set
in interface Headers<AsciiString>
name
- the name of the headers being setvalues
- the values of the headers being setthis
Http2Headers setObject(AsciiString name, Object value)
Headers
String
, 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 BinaryHeaders
setObject
in interface Headers<AsciiString>
name
- The name of the header being setvalue
- The value of the header being setthis
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 BinaryHeaders
setObject
in interface Headers<AsciiString>
name
- the name of the headers being setvalues
- the values of the headers being setthis
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 BinaryHeaders
setObject
in interface Headers<AsciiString>
name
- the name of the headers being setvalues
- the values of the headers being setthis
Http2Headers setBoolean(AsciiString name, boolean value)
Headers
name
to value
. This will remove all previous values associated with name
.setBoolean
in interface BinaryHeaders
setBoolean
in interface Headers<AsciiString>
name
- The name to modifyvalue
- The valuethis
Http2Headers setByte(AsciiString name, byte value)
Headers
name
to value
. This will remove all previous values associated with name
.setByte
in interface BinaryHeaders
setByte
in interface Headers<AsciiString>
name
- The name to modifyvalue
- The valuethis
Http2Headers setChar(AsciiString name, char value)
Headers
name
to value
. This will remove all previous values associated with name
.setChar
in interface BinaryHeaders
setChar
in interface Headers<AsciiString>
name
- The name to modifyvalue
- The valuethis
Http2Headers setShort(AsciiString name, short value)
Headers
name
to value
. This will remove all previous values associated with name
.setShort
in interface BinaryHeaders
setShort
in interface Headers<AsciiString>
name
- The name to modifyvalue
- The valuethis
Http2Headers setInt(AsciiString name, int value)
Headers
name
to value
. This will remove all previous values associated with name
.setInt
in interface BinaryHeaders
setInt
in interface Headers<AsciiString>
name
- The name to modifyvalue
- The valuethis
Http2Headers setLong(AsciiString name, long value)
Headers
name
to value
. This will remove all previous values associated with name
.setLong
in interface BinaryHeaders
setLong
in interface Headers<AsciiString>
name
- The name to modifyvalue
- The valuethis
Http2Headers setFloat(AsciiString name, float value)
Headers
name
to value
. This will remove all previous values associated with name
.setFloat
in interface BinaryHeaders
setFloat
in interface Headers<AsciiString>
name
- The name to modifyvalue
- The valuethis
Http2Headers setDouble(AsciiString name, double value)
Headers
name
to value
. This will remove all previous values associated with name
.setDouble
in interface BinaryHeaders
setDouble
in interface Headers<AsciiString>
name
- The name to modifyvalue
- The valuethis
Http2Headers setTimeMillis(AsciiString name, long value)
Headers
name
to value
. This will remove all previous values associated with name
.setTimeMillis
in interface BinaryHeaders
setTimeMillis
in interface Headers<AsciiString>
name
- The name to modifyvalue
- The valuethis
Http2Headers set(BinaryHeaders headers)
BinaryHeaders
set
in interface BinaryHeaders
Http2Headers setAll(BinaryHeaders headers)
BinaryHeaders
setAll
in interface BinaryHeaders
Http2Headers clear()
Headers
clear
in interface BinaryHeaders
clear
in interface Headers<AsciiString>
this
Http2Headers method(AsciiString value)
Http2Headers.PseudoHeaderName.METHOD
header or null
if there is no such headerHttp2Headers scheme(AsciiString value)
Http2Headers.PseudoHeaderName.SCHEME
header if there is no such headerHttp2Headers authority(AsciiString value)
Http2Headers.PseudoHeaderName.AUTHORITY
header or null
if there is no such headerHttp2Headers path(AsciiString value)
Http2Headers.PseudoHeaderName.PATH
header or null
if there is no such headerHttp2Headers status(AsciiString value)
Http2Headers.PseudoHeaderName.STATUS
header or null
if there is no such headerAsciiString method()
Http2Headers.PseudoHeaderName.METHOD
header or null
if there is no such headerAsciiString scheme()
Http2Headers.PseudoHeaderName.SCHEME
header or null
if there is no such headerAsciiString authority()
Http2Headers.PseudoHeaderName.AUTHORITY
header or null
if there is no such headerAsciiString path()
Http2Headers.PseudoHeaderName.PATH
header or null
if there is no such headerAsciiString status()
Http2Headers.PseudoHeaderName.STATUS
header or null
if there is no such headerCopyright © 2008–2015 The Netty Project. All rights reserved.