Class DefaultSpdyHeaders

    • 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>
    • Field Summary

      • Fields inherited from class io.netty.handler.codec.DefaultHeaders

        head
    • 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)
      Returns true if a header with the name and value exists, false otherwise.
      List<String> getAllAsString​(CharSequence name)
      Headers.getAll(Object) and convert each element of List to a String.
      String getAsString​(CharSequence name)
      Headers.get(Object) and convert the result to a String.
      Iterator<Map.Entry<String,​String>> iteratorAsString()
      Headers.iterator() that converts each Map.Entry's key and value to a String.
      • 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 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
    • Constructor Detail

      • DefaultSpdyHeaders

        public DefaultSpdyHeaders()
      • DefaultSpdyHeaders

        public DefaultSpdyHeaders​(boolean validate)
    • Method Detail

      • getAsString

        public String getAsString​(CharSequence name)
        Description copied from interface: SpdyHeaders
        Headers.get(Object) and convert the result to a String.
        Specified by:
        getAsString in interface SpdyHeaders
        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.
      • contains

        public boolean contains​(CharSequence name,
                                CharSequence value,
                                boolean ignoreCase)
        Description copied from interface: SpdyHeaders
        Returns 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.

        Specified by:
        contains in interface SpdyHeaders
        Parameters:
        name - the name of the header to find
        value - the value of the header to find
        ignoreCase - true then a case insensitive compare is run to compare values. otherwise a case sensitive compare is run to compare values.