public interface SpdyHeaders extends Headers<CharSequence>
SpdyHeadersFrame.| Modifier and Type | Interface and Description |
|---|---|
static class |
SpdyHeaders.HttpNames
SPDY HTTP header names
|
| Modifier and Type | Method and Description |
|---|---|
SpdyHeaders |
add(CharSequence name,
CharSequence... values)
Adds new headers with the specified
name and values. |
SpdyHeaders |
add(CharSequence name,
CharSequence value)
Adds a new header with the specified
name and value. |
SpdyHeaders |
add(CharSequence name,
Iterable<? extends CharSequence> values)
Adds new headers with the specified
name and values. |
SpdyHeaders |
add(Headers<? extends CharSequence> headers)
Adds all header names and values of
headers to this object. |
SpdyHeaders |
addBoolean(CharSequence name,
boolean value)
Adds a new header.
|
SpdyHeaders |
addByte(CharSequence name,
byte value)
Adds a new header.
|
SpdyHeaders |
addChar(CharSequence name,
char value)
Adds a new header.
|
SpdyHeaders |
addDouble(CharSequence name,
double value)
Adds a new header.
|
SpdyHeaders |
addFloat(CharSequence name,
float value)
Adds a new header.
|
SpdyHeaders |
addInt(CharSequence name,
int value)
Adds a new header.
|
SpdyHeaders |
addLong(CharSequence name,
long value)
Adds a new header.
|
SpdyHeaders |
addObject(CharSequence name,
Iterable<?> values)
Adds a new header with the specified name and values.
|
SpdyHeaders |
addObject(CharSequence name,
Object... values)
Adds a new header with the specified name and values.
|
SpdyHeaders |
addObject(CharSequence name,
Object value)
Adds a new header.
|
SpdyHeaders |
addShort(CharSequence name,
short value)
Adds a new header.
|
SpdyHeaders |
addTimeMillis(CharSequence name,
long value)
Adds a new header.
|
SpdyHeaders |
clear()
Removes all headers.
|
boolean |
contains(CharSequence name,
CharSequence value,
boolean ignoreCase)
Returns
true if a header with the name and value exists, false otherwise. |
List<String> |
getAllAsString(CharSequence name)
|
String |
getAsString(CharSequence name)
Headers.get(Object) and convert the result to a String. |
Iterator<Map.Entry<String,String>> |
iteratorAsString()
|
SpdyHeaders |
set(CharSequence name,
CharSequence... values)
Sets a header with the specified name and values.
|
SpdyHeaders |
set(CharSequence name,
CharSequence value)
Sets a header with the specified name and value.
|
SpdyHeaders |
set(CharSequence name,
Iterable<? extends CharSequence> values)
Sets a new header with the specified name and values.
|
SpdyHeaders |
set(Headers<? extends CharSequence> headers)
Clears the current header entries and copies all header entries of the specified
headers. |
SpdyHeaders |
setAll(Headers<? extends CharSequence> headers)
Retains all current headers but calls
#set(T, T) for each entry in headers. |
SpdyHeaders |
setBoolean(CharSequence name,
boolean value)
Set the
name to value. |
SpdyHeaders |
setByte(CharSequence name,
byte value)
Set the
name to value. |
SpdyHeaders |
setChar(CharSequence name,
char value)
Set the
name to value. |
SpdyHeaders |
setDouble(CharSequence name,
double value)
Set the
name to value. |
SpdyHeaders |
setFloat(CharSequence name,
float value)
Set the
name to value. |
SpdyHeaders |
setInt(CharSequence name,
int value)
Set the
name to value. |
SpdyHeaders |
setLong(CharSequence name,
long value)
Set the
name to value. |
SpdyHeaders |
setObject(CharSequence name,
Iterable<?> values)
Sets a header with the specified name and values.
|
SpdyHeaders |
setObject(CharSequence name,
Object... values)
Sets a header with the specified name and values.
|
SpdyHeaders |
setObject(CharSequence name,
Object value)
Sets a new header.
|
SpdyHeaders |
setShort(CharSequence name,
short value)
Set the
name to value. |
SpdyHeaders |
setTimeMillis(CharSequence name,
long value)
Set the
name to value. |
contains, 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, iterator, names, remove, sizeSpdyHeaders add(CharSequence name, CharSequence value)
Headersname and value.add in interface Headers<CharSequence>name - the name of the headervalue - the value of the headerthisSpdyHeaders add(CharSequence name, Iterable<? extends CharSequence> values)
Headersname and values. This method is semantically equivalent to
for (T value : values) {
headers.add(name, value);
}
add in interface Headers<CharSequence>name - the header namevalues - the values of the headerthisSpdyHeaders add(CharSequence name, CharSequence... values)
Headersname and values. This method is semantically equivalent to
for (T value : values) {
headers.add(name, value);
}
add in interface Headers<CharSequence>name - the header namevalues - the values of the headerthisSpdyHeaders addObject(CharSequence name, Object value)
Headersvalue is added, it's converted to type T.addObject in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisSpdyHeaders addObject(CharSequence name, Iterable<?> values)
Headers
for (Object v : values) {
headers.addObject(name, v);
}
addObject in interface Headers<CharSequence>name - the header namevalues - the value of the headerthisSpdyHeaders addObject(CharSequence name, Object... values)
Headers
for (Object v : values) {
headers.addObject(name, v);
}
addObject in interface Headers<CharSequence>name - the header namevalues - the value of the headerthisSpdyHeaders addBoolean(CharSequence name, boolean value)
HeadersaddBoolean in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisSpdyHeaders addByte(CharSequence name, byte value)
HeadersaddByte in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisSpdyHeaders addChar(CharSequence name, char value)
HeadersaddChar in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisSpdyHeaders addShort(CharSequence name, short value)
HeadersaddShort in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisSpdyHeaders addInt(CharSequence name, int value)
HeadersaddInt in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisSpdyHeaders addLong(CharSequence name, long value)
HeadersaddLong in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisSpdyHeaders addFloat(CharSequence name, float value)
HeadersaddFloat in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisSpdyHeaders addDouble(CharSequence name, double value)
HeadersaddDouble in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisSpdyHeaders addTimeMillis(CharSequence name, long value)
HeadersaddTimeMillis in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisSpdyHeaders add(Headers<? extends CharSequence> headers)
Headersheaders to this object.add in interface Headers<CharSequence>thisSpdyHeaders set(CharSequence name, CharSequence value)
Headersset in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisSpdyHeaders set(CharSequence name, Iterable<? extends CharSequence> values)
Headers
for (T v : values) {
headers.addObject(name, v);
}
set in interface Headers<CharSequence>name - the header namevalues - the value of the headerthisSpdyHeaders set(CharSequence name, CharSequence... values)
Headers
headers.remove(name);
for (T v : values) {
headers.add(name, v);
}
set in interface Headers<CharSequence>name - the header namevalues - the value of the headerthisSpdyHeaders setBoolean(CharSequence name, boolean value)
Headersname to value. This will remove all previous values associated with name.setBoolean in interface Headers<CharSequence>name - The name to modifyvalue - The valuethisSpdyHeaders setByte(CharSequence name, byte value)
Headersname to value. This will remove all previous values associated with name.setByte in interface Headers<CharSequence>name - The name to modifyvalue - The valuethisSpdyHeaders setChar(CharSequence name, char value)
Headersname to value. This will remove all previous values associated with name.setChar in interface Headers<CharSequence>name - The name to modifyvalue - The valuethisSpdyHeaders setShort(CharSequence name, short value)
Headersname to value. This will remove all previous values associated with name.setShort in interface Headers<CharSequence>name - The name to modifyvalue - The valuethisSpdyHeaders setInt(CharSequence name, int value)
Headersname to value. This will remove all previous values associated with name.setInt in interface Headers<CharSequence>name - The name to modifyvalue - The valuethisSpdyHeaders setLong(CharSequence name, long value)
Headersname to value. This will remove all previous values associated with name.setLong in interface Headers<CharSequence>name - The name to modifyvalue - The valuethisSpdyHeaders setFloat(CharSequence name, float value)
Headersname to value. This will remove all previous values associated with name.setFloat in interface Headers<CharSequence>name - The name to modifyvalue - The valuethisSpdyHeaders setDouble(CharSequence name, double value)
Headersname to value. This will remove all previous values associated with name.setDouble in interface Headers<CharSequence>name - The name to modifyvalue - The valuethisSpdyHeaders setTimeMillis(CharSequence name, long value)
Headersname to value. This will remove all previous values associated with name.setTimeMillis in interface Headers<CharSequence>name - The name to modifyvalue - The valuethisSpdyHeaders setObject(CharSequence name, Object value)
Headersvalue is add, it's
converted to type T.setObject in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisSpdyHeaders setObject(CharSequence name, Iterable<?> values)
Headers
headers.remove(name);
for (Object v : values) {
headers.addObject(name, v);
}
setObject in interface Headers<CharSequence>name - the header namevalues - the values of the headerthisSpdyHeaders setObject(CharSequence name, Object... values)
Headers
headers.remove(name);
for (Object v : values) {
headers.addObject(name, v);
}
setObject in interface Headers<CharSequence>name - the header namevalues - the values of the headerthisSpdyHeaders set(Headers<? extends CharSequence> headers)
Headersheaders.set in interface Headers<CharSequence>thisSpdyHeaders setAll(Headers<? extends CharSequence> headers)
Headers#set(T, T) for each entry in headers.setAll in interface Headers<CharSequence>headers - The headers used to #set(T, T) values in this instancethisSpdyHeaders clear()
HeadersHeaders.size() equals 0.clear in interface Headers<CharSequence>thisString getAsString(CharSequence name)
Headers.get(Object) and convert the result to a String.name - the name of the header to retrievenull if there's no such header.List<String> getAllAsString(CharSequence name)
boolean contains(CharSequence name, CharSequence value, boolean ignoreCase)
true if a header with the name and value exists, false otherwise.
If ignoreCase is true then a case insensitive compare is done on the value.
name - the name of the header to findvalue - the value of the header to findignoreCase - true then a case insensitive compare is run to compare values.
otherwise a case sensitive compare is run to compare values.Copyright © 2008–2015 The Netty Project. All rights reserved.