public class DefaultSpdyHeaders extends DefaultHeaders<CharSequence,CharSequence,SpdyHeaders> implements SpdyHeaders
DefaultHeaders.HeaderEntry<K,V>, DefaultHeaders.NameValidator<K>, DefaultHeaders.ValueValidator<V>
SpdyHeaders.HttpNames
head
Constructor and Description |
---|
DefaultSpdyHeaders() |
DefaultSpdyHeaders(boolean validate) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(CharSequence name,
CharSequence value)
Returns
true if a header with the name and value exists, false otherwise. |
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()
|
add, add, add, add, addBoolean, addByte, addChar, addDouble, addFloat, addImpl, addInt, addLong, addObject, addObject, addObject, addShort, addTimeMillis, clear, contains, contains, containsBoolean, containsByte, containsChar, containsDouble, containsFloat, containsInt, containsLong, containsObject, containsShort, containsTimeMillis, copy, equals, 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, hashCode, isEmpty, iterator, names, nameValidator, newHeaderEntry, remove, set, set, set, set, setAll, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setObject, setObject, setShort, setTimeMillis, size, toString, validateName, validateValue, valueConverter, valueIterator, valueValidator
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, add, add, addBoolean, addByte, addChar, addDouble, addFloat, addInt, addLong, addObject, addObject, addObject, addShort, addTimeMillis, clear, 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, set, set, set, set, setAll, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setObject, setObject, setShort, setTimeMillis, size
forEach, spliterator
public DefaultSpdyHeaders()
public DefaultSpdyHeaders(boolean validate)
public String getAsString(CharSequence name)
SpdyHeaders
Headers.get(Object)
and convert the result to a String
.getAsString
in interface SpdyHeaders
name
- the name of the header to retrievenull
if there's no such header.public List<String> getAllAsString(CharSequence name)
SpdyHeaders
getAllAsString
in interface SpdyHeaders
name
- the name of the header to retrieveList
of header values or an empty List
if no values are found.public Iterator<Map.Entry<String,String>> iteratorAsString()
SpdyHeaders
iteratorAsString
in interface SpdyHeaders
public boolean contains(CharSequence name, CharSequence value)
Headers
true
if a header with the name
and value
exists, false
otherwise.
The Object.equals(Object)
method is used to test for equality of value
.
contains
in interface Headers<CharSequence,CharSequence,SpdyHeaders>
contains
in class DefaultHeaders<CharSequence,CharSequence,SpdyHeaders>
name
- the header namevalue
- the header value of the header to findpublic boolean contains(CharSequence name, CharSequence value, boolean ignoreCase)
SpdyHeaders
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.
contains
in interface SpdyHeaders
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–2024 The Netty Project. All rights reserved.