Class DefaultSpdyHeaders
java.lang.Object
io.netty.handler.codec.DefaultHeaders<CharSequence, CharSequence, SpdyHeaders>
io.netty.handler.codec.spdy.DefaultSpdyHeaders
- All Implemented Interfaces:
Headers<CharSequence, CharSequence, SpdyHeaders>, SpdyHeaders, Iterable<Map.Entry<CharSequence, CharSequence>>
public class DefaultSpdyHeaders
extends DefaultHeaders<CharSequence, CharSequence, SpdyHeaders>
implements SpdyHeaders
-
Nested Class Summary
Nested classes/interfaces inherited from class DefaultHeaders
DefaultHeaders.HeaderEntry<K,V>, DefaultHeaders.NameValidator<K>, DefaultHeaders.ValueValidator<V> Nested classes/interfaces inherited from interface SpdyHeaders
SpdyHeaders.HttpNames -
Field Summary
Fields inherited from class DefaultHeaders
head -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(CharSequence name, CharSequence value) Returnstrueif a header with thenameandvalueexists,falseotherwise.booleancontains(CharSequence name, CharSequence value, boolean ignoreCase) Returnstrueif a header with thenameandvalueexists,falseotherwise.getAllAsString(CharSequence name) getAsString(CharSequence name) Headers.get(Object)and convert the result to aString.Methods inherited from class DefaultHeaders
add, add, add, add, addBoolean, addByte, addChar, addDouble, addFloat, addImpl, addInt, addLong, addObject, addObject, addObject, addShort, addTimeMillis, clear, contains, contains, containsAny, 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, valueValidatorMethods inherited from interface Headers
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, sizeMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
DefaultSpdyHeaders
public DefaultSpdyHeaders() -
DefaultSpdyHeaders
public DefaultSpdyHeaders(boolean validate)
-
-
Method Details
-
getAsString
Description copied from interface:SpdyHeadersHeaders.get(Object)and convert the result to aString.- Specified by:
getAsStringin interfaceSpdyHeaders- Parameters:
name- the name of the header to retrieve- Returns:
- the first header value if the header is found.
nullif there's no such header.
-
getAllAsString
Description copied from interface:SpdyHeaders- Specified by:
getAllAsStringin interfaceSpdyHeaders- Parameters:
name- the name of the header to retrieve- Returns:
- a
Listof header values or an emptyListif no values are found.
-
iteratorAsString
Description copied from interface:SpdyHeaders- Specified by:
iteratorAsStringin interfaceSpdyHeaders
-
contains
Description copied from interface:HeadersReturnstrueif a header with thenameandvalueexists,falseotherwise.The
Object.equals(Object)method is used to test for equality ofvalue.- Specified by:
containsin interfaceHeaders<CharSequence, CharSequence, SpdyHeaders>- Overrides:
containsin classDefaultHeaders<CharSequence, CharSequence, SpdyHeaders>- Parameters:
name- the header namevalue- the header value of the header to find
-
contains
Description copied from interface:SpdyHeadersReturnstrueif a header with thenameandvalueexists,falseotherwise.If
ignoreCaseistruethen a case insensitive compare is done on the value.- Specified by:
containsin interfaceSpdyHeaders- Parameters:
name- the name of the header to findvalue- the value of the header to findignoreCase-truethen a case insensitive compare is run to compare values. otherwise a case sensitive compare is run to compare values.
-