public class EmptyBinaryHeaders extends EmptyHeaders<AsciiString> implements BinaryHeaders
BinaryHeaders.EntryVisitor, BinaryHeaders.NameVisitor
Headers.ValueConverter<T>
Modifier | Constructor and Description |
---|---|
protected |
EmptyBinaryHeaders() |
Modifier and Type | Method and Description |
---|---|
BinaryHeaders |
add(AsciiString name,
AsciiString... values)
Adds a new header with the specified name and values.
|
BinaryHeaders |
add(AsciiString name,
AsciiString value)
Adds a new header with the specified name and value.
|
BinaryHeaders |
add(AsciiString name,
Iterable<? extends AsciiString> values)
Adds a new header with the specified name and values.
|
BinaryHeaders |
add(BinaryHeaders headers)
|
BinaryHeaders |
addBoolean(AsciiString name,
boolean value)
Add the
name to value . |
BinaryHeaders |
addByte(AsciiString name,
byte value)
Add the
name to value . |
BinaryHeaders |
addChar(AsciiString name,
char value)
Add the
name to value . |
BinaryHeaders |
addDouble(AsciiString name,
double value)
Add the
name to value . |
BinaryHeaders |
addFloat(AsciiString name,
float value)
Add the
name to value . |
BinaryHeaders |
addInt(AsciiString name,
int value)
Add the
name to value . |
BinaryHeaders |
addLong(AsciiString name,
long value)
Add the
name to value . |
BinaryHeaders |
addObject(AsciiString name,
Iterable<?> values)
Adds a new header with the specified name and values.
|
BinaryHeaders |
addObject(AsciiString name,
Object... values)
Adds a new header with the specified name and values.
|
BinaryHeaders |
addObject(AsciiString name,
Object value)
Adds a new header with the specified name and value.
|
BinaryHeaders |
addShort(AsciiString name,
short value)
Add the
name to value . |
BinaryHeaders |
addTimeMillis(AsciiString name,
long value)
Add the
name to value . |
BinaryHeaders |
clear()
Removes all headers.
|
BinaryHeaders |
set(AsciiString name,
AsciiString... values)
Sets a header with the specified name and values.
|
BinaryHeaders |
set(AsciiString name,
AsciiString value)
Sets a header with the specified name and value.
|
BinaryHeaders |
set(AsciiString name,
Iterable<? extends AsciiString> values)
Sets a header with the specified name and values.
|
BinaryHeaders |
set(BinaryHeaders headers)
|
BinaryHeaders |
setAll(BinaryHeaders headers)
|
BinaryHeaders |
setBoolean(AsciiString name,
boolean value)
Set the
name to value . |
BinaryHeaders |
setByte(AsciiString name,
byte value)
Set the
name to value . |
BinaryHeaders |
setChar(AsciiString name,
char value)
Set the
name to value . |
BinaryHeaders |
setDouble(AsciiString name,
double value)
Set the
name to value . |
BinaryHeaders |
setFloat(AsciiString name,
float value)
Set the
name to value . |
BinaryHeaders |
setInt(AsciiString name,
int value)
Set the
name to value . |
BinaryHeaders |
setLong(AsciiString name,
long value)
Set the
name to value . |
BinaryHeaders |
setObject(AsciiString name,
Iterable<?> values)
Sets a header with the specified name and values.
|
BinaryHeaders |
setObject(AsciiString name,
Object... values)
Sets a header with the specified name and values.
|
BinaryHeaders |
setObject(AsciiString name,
Object value)
Sets a header with the specified name and value.
|
BinaryHeaders |
setShort(AsciiString name,
short value)
Set the
name to value . |
BinaryHeaders |
setTimeMillis(AsciiString 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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
public BinaryHeaders 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>
add
in class EmptyHeaders<AsciiString>
name
- the name of the header being addedvalue
- the value of the header being addedthis
public BinaryHeaders 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>
add
in class EmptyHeaders<AsciiString>
name
- the name of the headepublic abstract rs being setvalues
- the values of the headers being setthis
public BinaryHeaders 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>
add
in class EmptyHeaders<AsciiString>
name
- the name of the headepublic abstract rs being setvalues
- the values of the headers being setthis
public BinaryHeaders 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>
addObject
in class EmptyHeaders<AsciiString>
name
- the name of the header being addedvalue
- the value of the header being addedthis
public BinaryHeaders 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>
addObject
in class EmptyHeaders<AsciiString>
name
- the name of the headepublic abstract rs being setvalues
- the values of the headers being setthis
public BinaryHeaders 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>
addObject
in class EmptyHeaders<AsciiString>
name
- the name of the headepublic abstract rs being setvalues
- the values of the headers being setthis
public BinaryHeaders addBoolean(AsciiString name, boolean value)
Headers
name
to value
.addBoolean
in interface BinaryHeaders
addBoolean
in interface Headers<AsciiString>
addBoolean
in class EmptyHeaders<AsciiString>
name
- The name to modifyvalue
- The valuethis
public BinaryHeaders addChar(AsciiString name, char value)
Headers
name
to value
.addChar
in interface BinaryHeaders
addChar
in interface Headers<AsciiString>
addChar
in class EmptyHeaders<AsciiString>
name
- The name to modifyvalue
- The valuethis
public BinaryHeaders addByte(AsciiString name, byte value)
Headers
name
to value
.addByte
in interface BinaryHeaders
addByte
in interface Headers<AsciiString>
addByte
in class EmptyHeaders<AsciiString>
name
- The name to modifyvalue
- The valuethis
public BinaryHeaders addShort(AsciiString name, short value)
Headers
name
to value
.addShort
in interface BinaryHeaders
addShort
in interface Headers<AsciiString>
addShort
in class EmptyHeaders<AsciiString>
name
- The name to modifyvalue
- The valuethis
public BinaryHeaders addInt(AsciiString name, int value)
Headers
name
to value
.addInt
in interface BinaryHeaders
addInt
in interface Headers<AsciiString>
addInt
in class EmptyHeaders<AsciiString>
name
- The name to modifyvalue
- The valuethis
public BinaryHeaders addLong(AsciiString name, long value)
Headers
name
to value
.addLong
in interface BinaryHeaders
addLong
in interface Headers<AsciiString>
addLong
in class EmptyHeaders<AsciiString>
name
- The name to modifyvalue
- The valuethis
public BinaryHeaders addFloat(AsciiString name, float value)
Headers
name
to value
.addFloat
in interface BinaryHeaders
addFloat
in interface Headers<AsciiString>
addFloat
in class EmptyHeaders<AsciiString>
name
- The name to modifyvalue
- The valuethis
public BinaryHeaders addDouble(AsciiString name, double value)
Headers
name
to value
.addDouble
in interface BinaryHeaders
addDouble
in interface Headers<AsciiString>
addDouble
in class EmptyHeaders<AsciiString>
name
- The name to modifyvalue
- The valuethis
public BinaryHeaders addTimeMillis(AsciiString name, long value)
Headers
name
to value
.addTimeMillis
in interface BinaryHeaders
addTimeMillis
in interface Headers<AsciiString>
addTimeMillis
in class EmptyHeaders<AsciiString>
name
- The name to modifyvalue
- The valuethis
public BinaryHeaders add(BinaryHeaders headers)
BinaryHeaders
add
in interface BinaryHeaders
public BinaryHeaders 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>
set
in class EmptyHeaders<AsciiString>
name
- The name of the header being setvalue
- The value of the header being setthis
public BinaryHeaders 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>
set
in class EmptyHeaders<AsciiString>
name
- the name of the headers being setvalues
- the values of the headers being setthis
public BinaryHeaders 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>
set
in class EmptyHeaders<AsciiString>
name
- the name of the headers being setvalues
- the values of the headers being setthis
public BinaryHeaders 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>
setObject
in class EmptyHeaders<AsciiString>
name
- The name of the header being setvalue
- The value of the header being setthis
public BinaryHeaders 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>
setObject
in class EmptyHeaders<AsciiString>
name
- the name of the headers being setvalues
- the values of the headers being setthis
public BinaryHeaders 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>
setObject
in class EmptyHeaders<AsciiString>
name
- the name of the headers being setvalues
- the values of the headers being setthis
public BinaryHeaders 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>
setBoolean
in class EmptyHeaders<AsciiString>
name
- The name to modifyvalue
- The valuethis
public BinaryHeaders 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>
setChar
in class EmptyHeaders<AsciiString>
name
- The name to modifyvalue
- The valuethis
public BinaryHeaders 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>
setByte
in class EmptyHeaders<AsciiString>
name
- The name to modifyvalue
- The valuethis
public BinaryHeaders 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>
setShort
in class EmptyHeaders<AsciiString>
name
- The name to modifyvalue
- The valuethis
public BinaryHeaders 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>
setInt
in class EmptyHeaders<AsciiString>
name
- The name to modifyvalue
- The valuethis
public BinaryHeaders 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>
setLong
in class EmptyHeaders<AsciiString>
name
- The name to modifyvalue
- The valuethis
public BinaryHeaders 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>
setFloat
in class EmptyHeaders<AsciiString>
name
- The name to modifyvalue
- The valuethis
public BinaryHeaders 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>
setDouble
in class EmptyHeaders<AsciiString>
name
- The name to modifyvalue
- The valuethis
public BinaryHeaders 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>
setTimeMillis
in class EmptyHeaders<AsciiString>
name
- The name to modifyvalue
- The valuethis
public BinaryHeaders set(BinaryHeaders headers)
BinaryHeaders
set
in interface BinaryHeaders
public BinaryHeaders setAll(BinaryHeaders headers)
BinaryHeaders
setAll
in interface BinaryHeaders
public BinaryHeaders clear()
Headers
clear
in interface BinaryHeaders
clear
in interface Headers<AsciiString>
clear
in class EmptyHeaders<AsciiString>
this
Copyright © 2008–2015 The Netty Project. All rights reserved.