public class EmptyHttpHeaders extends EmptyTextHeaders implements HttpHeaders
TextHeaders.EntryVisitor, TextHeaders.NameVisitorConvertibleHeaders.TypeConverter<UnconvertedType,ConvertedType>Headers.ValueConverter<T>| Modifier and Type | Field and Description |
|---|---|
static EmptyHttpHeaders |
INSTANCE |
| Modifier | Constructor and Description |
|---|---|
protected |
EmptyHttpHeaders() |
| Modifier and Type | Method and Description |
|---|---|
HttpHeaders |
add(CharSequence name,
CharSequence... values)
Adds a new header with the specified name and values.
|
HttpHeaders |
add(CharSequence name,
CharSequence value)
Adds a new header with the specified name and value.
|
HttpHeaders |
add(CharSequence name,
Iterable<? extends CharSequence> values)
Adds a new header with the specified name and values.
|
HttpHeaders |
add(TextHeaders headers)
|
HttpHeaders |
addBoolean(CharSequence name,
boolean value)
Add the
name to value. |
HttpHeaders |
addByte(CharSequence name,
byte value)
Add the
name to value. |
HttpHeaders |
addChar(CharSequence name,
char value)
Add the
name to value. |
HttpHeaders |
addDouble(CharSequence name,
double value)
Add the
name to value. |
HttpHeaders |
addFloat(CharSequence name,
float value)
Add the
name to value. |
HttpHeaders |
addInt(CharSequence name,
int value)
Add the
name to value. |
HttpHeaders |
addLong(CharSequence name,
long value)
Add the
name to value. |
HttpHeaders |
addObject(CharSequence name,
Iterable<?> values)
Adds a new header with the specified name and values.
|
HttpHeaders |
addObject(CharSequence name,
Object... values)
Adds a new header with the specified name and values.
|
HttpHeaders |
addObject(CharSequence name,
Object value)
Adds a new header with the specified name and value.
|
HttpHeaders |
addShort(CharSequence name,
short value)
Add the
name to value. |
HttpHeaders |
addTimeMillis(CharSequence name,
long value)
Add the
name to value. |
HttpHeaders |
clear()
Removes all headers.
|
HttpHeaders |
set(CharSequence name,
CharSequence... values)
Sets a header with the specified name and values.
|
HttpHeaders |
set(CharSequence name,
CharSequence value)
Sets a header with the specified name and value.
|
HttpHeaders |
set(CharSequence name,
Iterable<? extends CharSequence> values)
Sets a header with the specified name and values.
|
HttpHeaders |
set(TextHeaders headers)
|
HttpHeaders |
setAll(TextHeaders headers)
|
HttpHeaders |
setBoolean(CharSequence name,
boolean value)
Set the
name to value. |
HttpHeaders |
setByte(CharSequence name,
byte value)
Set the
name to value. |
HttpHeaders |
setChar(CharSequence name,
char value)
Set the
name to value. |
HttpHeaders |
setDouble(CharSequence name,
double value)
Set the
name to value. |
HttpHeaders |
setFloat(CharSequence name,
float value)
Set the
name to value. |
HttpHeaders |
setInt(CharSequence name,
int value)
Set the
name to value. |
HttpHeaders |
setLong(CharSequence name,
long value)
Set the
name to value. |
HttpHeaders |
setObject(CharSequence name,
Iterable<?> values)
Sets a header with the specified name and values.
|
HttpHeaders |
setObject(CharSequence name,
Object... values)
Sets a header with the specified name and values.
|
HttpHeaders |
setObject(CharSequence name,
Object value)
Sets a header with the specified name and value.
|
HttpHeaders |
setShort(CharSequence name,
short value)
Set the
name to value. |
HttpHeaders |
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, toStringclone, 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 static final EmptyHttpHeaders INSTANCE
public HttpHeaders 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 HttpHeadersadd in interface TextHeadersadd in class EmptyTextHeadersname - the name of the header being addedvalue - the value of the header being addedthispublic HttpHeaders 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 HttpHeadersadd in interface TextHeadersadd in class EmptyTextHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic HttpHeaders 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 HttpHeadersadd in interface TextHeadersadd in class EmptyTextHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic HttpHeaders 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 HttpHeadersaddObject in interface TextHeadersaddObject in class EmptyTextHeadersname - the name of the header being addedvalue - the value of the header being addedthispublic HttpHeaders 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 HttpHeadersaddObject in interface TextHeadersaddObject in class EmptyTextHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic HttpHeaders 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 HttpHeadersaddObject in interface TextHeadersaddObject in class EmptyTextHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic HttpHeaders addBoolean(CharSequence name, boolean value)
Headersname to value.addBoolean in interface Headers<CharSequence>addBoolean in interface HttpHeadersaddBoolean in interface TextHeadersaddBoolean in class EmptyTextHeadersname - The name to modifyvalue - The valuethispublic HttpHeaders addChar(CharSequence name, char value)
Headersname to value.addChar in interface Headers<CharSequence>addChar in interface HttpHeadersaddChar in interface TextHeadersaddChar in class EmptyTextHeadersname - The name to modifyvalue - The valuethispublic HttpHeaders addByte(CharSequence name, byte value)
Headersname to value.addByte in interface Headers<CharSequence>addByte in interface HttpHeadersaddByte in interface TextHeadersaddByte in class EmptyTextHeadersname - The name to modifyvalue - The valuethispublic HttpHeaders addShort(CharSequence name, short value)
Headersname to value.addShort in interface Headers<CharSequence>addShort in interface HttpHeadersaddShort in interface TextHeadersaddShort in class EmptyTextHeadersname - The name to modifyvalue - The valuethispublic HttpHeaders addInt(CharSequence name, int value)
Headersname to value.addInt in interface Headers<CharSequence>addInt in interface HttpHeadersaddInt in interface TextHeadersaddInt in class EmptyTextHeadersname - The name to modifyvalue - The valuethispublic HttpHeaders addLong(CharSequence name, long value)
Headersname to value.addLong in interface Headers<CharSequence>addLong in interface HttpHeadersaddLong in interface TextHeadersaddLong in class EmptyTextHeadersname - The name to modifyvalue - The valuethispublic HttpHeaders addFloat(CharSequence name, float value)
Headersname to value.addFloat in interface Headers<CharSequence>addFloat in interface HttpHeadersaddFloat in interface TextHeadersaddFloat in class EmptyTextHeadersname - The name to modifyvalue - The valuethispublic HttpHeaders addDouble(CharSequence name, double value)
Headersname to value.addDouble in interface Headers<CharSequence>addDouble in interface HttpHeadersaddDouble in interface TextHeadersaddDouble in class EmptyTextHeadersname - The name to modifyvalue - The valuethispublic HttpHeaders addTimeMillis(CharSequence name, long value)
Headersname to value.addTimeMillis in interface Headers<CharSequence>addTimeMillis in interface HttpHeadersaddTimeMillis in interface TextHeadersaddTimeMillis in class EmptyTextHeadersname - The name to modifyvalue - The valuethispublic HttpHeaders add(TextHeaders headers)
TextHeadersadd in interface HttpHeadersadd in interface TextHeadersadd in class EmptyTextHeaderspublic HttpHeaders 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 HttpHeadersset in interface TextHeadersset in class EmptyTextHeadersname - The name of the header being setvalue - The value of the header being setthispublic HttpHeaders 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 HttpHeadersset in interface TextHeadersset in class EmptyTextHeadersname - the name of the headers being setvalues - the values of the headers being setthispublic HttpHeaders 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 HttpHeadersset in interface TextHeadersset in class EmptyTextHeadersname - the name of the headers being setvalues - the values of the headers being setthispublic HttpHeaders 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 HttpHeaderssetObject in interface TextHeaderssetObject in class EmptyTextHeadersname - The name of the header being setvalue - The value of the header being setthispublic HttpHeaders 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 HttpHeaderssetObject in interface TextHeaderssetObject in class EmptyTextHeadersname - the name of the headers being setvalues - the values of the headers being setthispublic HttpHeaders 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 HttpHeaderssetObject in interface TextHeaderssetObject in class EmptyTextHeadersname - the name of the headers being setvalues - the values of the headers being setthispublic HttpHeaders 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 HttpHeaderssetBoolean in interface TextHeaderssetBoolean in class EmptyTextHeadersname - The name to modifyvalue - The valuethispublic HttpHeaders 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 HttpHeaderssetChar in interface TextHeaderssetChar in class EmptyTextHeadersname - The name to modifyvalue - The valuethispublic HttpHeaders 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 HttpHeaderssetByte in interface TextHeaderssetByte in class EmptyTextHeadersname - The name to modifyvalue - The valuethispublic HttpHeaders 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 HttpHeaderssetShort in interface TextHeaderssetShort in class EmptyTextHeadersname - The name to modifyvalue - The valuethispublic HttpHeaders 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 HttpHeaderssetInt in interface TextHeaderssetInt in class EmptyTextHeadersname - The name to modifyvalue - The valuethispublic HttpHeaders 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 HttpHeaderssetLong in interface TextHeaderssetLong in class EmptyTextHeadersname - The name to modifyvalue - The valuethispublic HttpHeaders 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 HttpHeaderssetFloat in interface TextHeaderssetFloat in class EmptyTextHeadersname - The name to modifyvalue - The valuethispublic HttpHeaders 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 HttpHeaderssetDouble in interface TextHeaderssetDouble in class EmptyTextHeadersname - The name to modifyvalue - The valuethispublic HttpHeaders 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 HttpHeaderssetTimeMillis in interface TextHeaderssetTimeMillis in class EmptyTextHeadersname - The name to modifyvalue - The valuethispublic HttpHeaders set(TextHeaders headers)
TextHeadersset in interface HttpHeadersset in interface TextHeadersset in class EmptyTextHeaderspublic HttpHeaders setAll(TextHeaders headers)
TextHeaderssetAll in interface HttpHeaderssetAll in interface TextHeaderssetAll in class EmptyTextHeaderspublic HttpHeaders clear()
Headersclear in interface Headers<CharSequence>clear in interface HttpHeadersclear in interface TextHeadersclear in class EmptyTextHeadersthisCopyright © 2008–2015 The Netty Project. All rights reserved.