Package io.netty.handler.codec.spdy
Interface SpdyHeaders
-
- All Superinterfaces:
Headers<java.lang.CharSequence,java.lang.CharSequence,SpdyHeaders>,java.lang.Iterable<java.util.Map.Entry<java.lang.CharSequence,java.lang.CharSequence>>
- All Known Implementing Classes:
DefaultSpdyHeaders
public interface SpdyHeaders extends Headers<java.lang.CharSequence,java.lang.CharSequence,SpdyHeaders>
Provides the constants for the standard SPDY HTTP header names and commonly used utility methods that access aSpdyHeadersFrame.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSpdyHeaders.HttpNamesSPDY HTTP header names
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(java.lang.CharSequence name, java.lang.CharSequence value, boolean ignoreCase)Returnstrueif a header with thenameandvalueexists,falseotherwise.java.util.List<java.lang.String>getAllAsString(java.lang.CharSequence name)java.lang.StringgetAsString(java.lang.CharSequence name)Headers.get(Object)and convert the result to aString.java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>>iteratorAsString()-
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, 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
-
-
-
-
Method Detail
-
getAsString
java.lang.String getAsString(java.lang.CharSequence name)
Headers.get(Object)and convert the result to aString.- 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
java.util.List<java.lang.String> getAllAsString(java.lang.CharSequence name)
- Parameters:
name- the name of the header to retrieve- Returns:
- a
Listof header values or an emptyListif no values are found.
-
iteratorAsString
java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> iteratorAsString()
-
contains
boolean contains(java.lang.CharSequence name, java.lang.CharSequence value, boolean ignoreCase)Returnstrueif a header with thenameandvalueexists,falseotherwise.If
ignoreCaseistruethen a case insensitive compare is done on the value.- 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.
-
-