Package io.netty.handler.codec.spdy
Class DefaultSpdyHeaders
- java.lang.Object
-
- io.netty.handler.codec.DefaultHeaders<CharSequence,CharSequence,SpdyHeaders>
-
- io.netty.handler.codec.spdy.DefaultSpdyHeaders
-
- All Implemented Interfaces:
io.netty.handler.codec.Headers<CharSequence,CharSequence,SpdyHeaders>
,SpdyHeaders
,Iterable<Map.Entry<CharSequence,CharSequence>>
public class DefaultSpdyHeaders extends io.netty.handler.codec.DefaultHeaders<CharSequence,CharSequence,SpdyHeaders> implements SpdyHeaders
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.netty.handler.codec.DefaultHeaders
io.netty.handler.codec.DefaultHeaders.HeaderEntry<K extends Object,V extends Object>, io.netty.handler.codec.DefaultHeaders.NameValidator<K extends Object>, io.netty.handler.codec.DefaultHeaders.ValueValidator<V extends Object>
-
Nested classes/interfaces inherited from interface io.netty.handler.codec.spdy.SpdyHeaders
SpdyHeaders.HttpNames
-
-
Constructor Summary
Constructors Constructor Description DefaultSpdyHeaders()
DefaultSpdyHeaders(boolean validate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(CharSequence name, CharSequence value)
boolean
contains(CharSequence name, CharSequence value, boolean ignoreCase)
Returnstrue
if a header with thename
andvalue
exists,false
otherwise.List<String>
getAllAsString(CharSequence name)
String
getAsString(CharSequence name)
Headers.get(Object)
and convert the result to aString
.Iterator<Map.Entry<String,String>>
iteratorAsString()
-
Methods inherited from class io.netty.handler.codec.DefaultHeaders
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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.netty.handler.codec.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, size
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getAsString
public String getAsString(CharSequence name)
Description copied from interface:SpdyHeaders
Headers.get(Object)
and convert the result to aString
.- Specified by:
getAsString
in interfaceSpdyHeaders
- Parameters:
name
- the name of the header to retrieve- Returns:
- the first header value if the header is found.
null
if there's no such header.
-
getAllAsString
public List<String> getAllAsString(CharSequence name)
Description copied from interface:SpdyHeaders
- Specified by:
getAllAsString
in interfaceSpdyHeaders
- Parameters:
name
- the name of the header to retrieve- Returns:
- a
List
of header values or an emptyList
if no values are found.
-
iteratorAsString
public Iterator<Map.Entry<String,String>> iteratorAsString()
Description copied from interface:SpdyHeaders
- Specified by:
iteratorAsString
in interfaceSpdyHeaders
-
contains
public boolean contains(CharSequence name, CharSequence value)
- Specified by:
contains
in interfaceio.netty.handler.codec.Headers<CharSequence,CharSequence,SpdyHeaders>
- Overrides:
contains
in classio.netty.handler.codec.DefaultHeaders<CharSequence,CharSequence,SpdyHeaders>
-
contains
public boolean contains(CharSequence name, CharSequence value, boolean ignoreCase)
Description copied from interface:SpdyHeaders
Returnstrue
if a header with thename
andvalue
exists,false
otherwise.If
ignoreCase
istrue
then a case insensitive compare is done on the value.- Specified by:
contains
in interfaceSpdyHeaders
- Parameters:
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.
-
-