GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Use
  • Tree
  • Deprecated
  • Index
  • Search
  • Help
  • io.netty.handler.codec
  • DefaultHeadersImpl

This view

  • Original page
  • New address

GeezerVison is showing netty.io — DefaultHeadersImpl (Netty API Reference (4.1.141.Final))

Class DefaultHeadersImpl<K,V>

java.lang.Object
io.netty.handler.codec.DefaultHeaders<K, V, DefaultHeadersImpl<K,V>>
io.netty.handler.codec.DefaultHeadersImpl<K,V>
Type Parameters:
K - the type of the header name.
V - the type of the header value.
All Implemented Interfaces:
Headers<K, V, DefaultHeadersImpl<K,V>>, Iterable<Map.Entry<K,V>>

public final class DefaultHeadersImpl<K,V> extends DefaultHeaders<K, V, DefaultHeadersImpl<K,V>>
A concrete implementation of DefaultHeaders that allows for direct instantiation.
  • Nested Class Summary

    Nested classes/interfaces inherited from class DefaultHeaders

    DefaultHeaders.HeaderEntry<K,V>, DefaultHeaders.NameValidator<K>, DefaultHeaders.ValueValidator<V>
    Modifier and Type
    Class
    Description
    protected static class 
    DefaultHeaders.HeaderEntry<K,V>
     
    static interface 
    DefaultHeaders.NameValidator<K>
     
    static interface 
    DefaultHeaders.ValueValidator<V>
     
  • Field Summary

    Fields inherited from class DefaultHeaders

    head
    Modifier and Type
    Field
    Description
    protected final DefaultHeaders.HeaderEntry<K,V>
    head
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultHeadersImpl(HashingStrategy<K> nameHashingStrategy, ValueConverter<V> valueConverter, DefaultHeaders.NameValidator<K> nameValidator)
     
    DefaultHeadersImpl(HashingStrategy<K> nameHashingStrategy, ValueConverter<V> valueConverter, DefaultHeaders.NameValidator<K> nameValidator, int arraySizeHint, DefaultHeaders.ValueValidator<V> valueValidator)
     
  • Method Summary

    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, 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
    Modifier and Type
    Method
    Description
    DefaultHeadersImpl<K,V>
    add(Headers<? extends K, ? extends V, ?> headers)
    Adds all header names and values of headers to this object.
    DefaultHeadersImpl<K,V>
    add(K name, Iterable<? extends V> values)
    Adds new headers with the specified name and values.
    DefaultHeadersImpl<K,V>
    add(K name, V value)
    Adds a new header with the specified name and value.
    DefaultHeadersImpl<K,V>
    add(K name, V... values)
    Adds new headers with the specified name and values.
    DefaultHeadersImpl<K,V>
    addBoolean(K name, boolean value)
    Adds a new header.
    DefaultHeadersImpl<K,V>
    addByte(K name, byte value)
    Adds a new header.
    DefaultHeadersImpl<K,V>
    addChar(K name, char value)
    Adds a new header.
    DefaultHeadersImpl<K,V>
    addDouble(K name, double value)
    Adds a new header.
    DefaultHeadersImpl<K,V>
    addFloat(K name, float value)
    Adds a new header.
    protected void
    addImpl(Headers<? extends K, ? extends V, ?> headers)
     
    DefaultHeadersImpl<K,V>
    addInt(K name, int value)
    Adds a new header.
    DefaultHeadersImpl<K,V>
    addLong(K name, long value)
    Adds a new header.
    DefaultHeadersImpl<K,V>
    addObject(K name, Iterable<?> values)
    Adds a new header with the specified name and values.
    DefaultHeadersImpl<K,V>
    addObject(K name, Object value)
    Adds a new header.
    DefaultHeadersImpl<K,V>
    addObject(K name, Object... values)
    Adds a new header with the specified name and values.
    DefaultHeadersImpl<K,V>
    addShort(K name, short value)
    Adds a new header.
    DefaultHeadersImpl<K,V>
    addTimeMillis(K name, long value)
    Adds a new header.
    DefaultHeadersImpl<K,V>
    clear()
    Removes all headers.
    boolean
    contains(K name)
    Returns true if a header with the name exists, false otherwise.
    boolean
    contains(K name, V value)
    Returns true if a header with the name and value exists, false otherwise.
    final boolean
    contains(K name, V value, HashingStrategy<? super V> valueHashingStrategy)
     
    boolean
    containsBoolean(K name, boolean value)
    Returns true if a header with the name and value exists.
    boolean
    containsByte(K name, byte value)
    Returns true if a header with the name and value exists.
    boolean
    containsChar(K name, char value)
    Returns true if a header with the name and value exists.
    boolean
    containsDouble(K name, double value)
    Returns true if a header with the name and value exists.
    boolean
    containsFloat(K name, float value)
    Returns true if a header with the name and value exists.
    boolean
    containsInt(K name, int value)
    Returns true if a header with the name and value exists.
    boolean
    containsLong(K name, long value)
    Returns true if a header with the name and value exists.
    boolean
    containsObject(K name, Object value)
    Returns true if a header with the name and value exists.
    boolean
    containsShort(K name, short value)
    Returns true if a header with the name and value exists.
    boolean
    containsTimeMillis(K name, long value)
    Returns true if a header with the name and value exists.
    DefaultHeaders<K, V, DefaultHeadersImpl<K,V>>
    copy()
    Returns a deep copy of this instance.
    final boolean
    equals(Headers<K,V,?> h2, HashingStrategy<V> valueHashingStrategy)
    Test this object for equality against h2.
    boolean
    equals(Object o)
     
    V
    get(K name)
    Returns the value of a header with the specified name.
    V
    get(K name, V defaultValue)
    Returns the value of a header with the specified name.
    List<V>
    getAll(K name)
    Returns all values for the header with the specified name.
    List<V>
    getAllAndRemove(K name)
    Returns all values for the header with the specified name and removes them from this object.
    V
    getAndRemove(K name)
    Returns the value of a header with the specified name and removes it from this object.
    V
    getAndRemove(K name, V defaultValue)
    Returns the value of a header with the specified name and removes it from this object.
    Boolean
    getBoolean(K name)
    Returns the boolean value of a header with the specified name.
    boolean
    getBoolean(K name, boolean defaultValue)
    Returns the boolean value of a header with the specified name.
    Boolean
    getBooleanAndRemove(K name)
    Returns the boolean value of a header with the specified name and removes the header from this object.
    boolean
    getBooleanAndRemove(K name, boolean defaultValue)
    Returns the boolean value of a header with the specified name and removes the header from this object.
    Byte
    getByte(K name)
    Returns the byte value of a header with the specified name.
    byte
    getByte(K name, byte defaultValue)
    Returns the byte value of a header with the specified name.
    Byte
    getByteAndRemove(K name)
    Returns the byte value of a header with the specified name and removes the header from this object.
    byte
    getByteAndRemove(K name, byte defaultValue)
    Returns the byte value of a header with the specified name and removes the header from this object.
    Character
    getChar(K name)
    Returns the char value of a header with the specified name.
    char
    getChar(K name, char defaultValue)
    Returns the char value of a header with the specified name.
    Character
    getCharAndRemove(K name)
    Returns the char value of a header with the specified name and removes the header from this object.
    char
    getCharAndRemove(K name, char defaultValue)
    Returns the char value of a header with the specified name and removes the header from this object.
    Double
    getDouble(K name)
    Returns the double value of a header with the specified name.
    double
    getDouble(K name, double defaultValue)
    Returns the double value of a header with the specified name.
    Double
    getDoubleAndRemove(K name)
    Returns the double value of a header with the specified name and removes the header from this object.
    double
    getDoubleAndRemove(K name, double defaultValue)
    Returns the double value of a header with the specified name and removes the header from this object.
    Float
    getFloat(K name)
    Returns the float value of a header with the specified name.
    float
    getFloat(K name, float defaultValue)
    Returns the float value of a header with the specified name.
    Float
    getFloatAndRemove(K name)
    Returns the float value of a header with the specified name and removes the header from this object.
    float
    getFloatAndRemove(K name, float defaultValue)
    Returns the float value of a header with the specified name and removes the header from this object.
    Integer
    getInt(K name)
    Returns the int value of a header with the specified name.
    int
    getInt(K name, int defaultValue)
    Returns the int value of a header with the specified name.
    Integer
    getIntAndRemove(K name)
    Returns the int value of a header with the specified name and removes the header from this object.
    int
    getIntAndRemove(K name, int defaultValue)
    Returns the int value of a header with the specified name and removes the header from this object.
    Long
    getLong(K name)
    Returns the long value of a header with the specified name.
    long
    getLong(K name, long defaultValue)
    Returns the long value of a header with the specified name.
    Long
    getLongAndRemove(K name)
    Returns the long value of a header with the specified name and removes the header from this object.
    long
    getLongAndRemove(K name, long defaultValue)
    Returns the long value of a header with the specified name and removes the header from this object.
    Short
    getShort(K name)
    Returns the short value of a header with the specified name.
    short
    getShort(K name, short defaultValue)
    Returns the short value of a header with the specified name.
    Short
    getShortAndRemove(K name)
    Returns the short value of a header with the specified name and removes the header from this object.
    short
    getShortAndRemove(K name, short defaultValue)
    Returns the short value of a header with the specified name and removes the header from this object.
    Long
    getTimeMillis(K name)
    Returns the value of a header with the specified name in milliseconds.
    long
    getTimeMillis(K name, long defaultValue)
    Returns the value of a header with the specified name in milliseconds.
    Long
    getTimeMillisAndRemove(K name)
    Returns the value of a header with the specified name in milliseconds and removes the header from this object.
    long
    getTimeMillisAndRemove(K name, long defaultValue)
    Returns the value of a header with the specified name in milliseconds and removes the header from this object.
    int
    hashCode()
     
    final int
    hashCode(HashingStrategy<V> valueHashingStrategy)
    Generate a hash code for this object given a HashingStrategy to generate hash codes for individual values.
    boolean
    isEmpty()
    Returns true if Headers.size() equals 0.
    Iterator<Map.Entry<K,V>>
    iterator()
     
    Set<K>
    names()
    Returns a Set of all header names in this object.
    protected DefaultHeaders.NameValidator<K>
    nameValidator()
     
    protected DefaultHeaders.HeaderEntry<K,V>
    newHeaderEntry(int h, K name, V value, DefaultHeaders.HeaderEntry<K,V> next)
     
    boolean
    remove(K name)
    Removes all headers with the specified name.
    DefaultHeadersImpl<K,V>
    set(Headers<? extends K, ? extends V, ?> headers)
    Clears the current header entries and copies all header entries of the specified headers.
    DefaultHeadersImpl<K,V>
    set(K name, Iterable<? extends V> values)
    Sets a new header with the specified name and values.
    DefaultHeadersImpl<K,V>
    set(K name, V value)
    Sets a header with the specified name and value.
    DefaultHeadersImpl<K,V>
    set(K name, V... values)
    Sets a header with the specified name and values.
    DefaultHeadersImpl<K,V>
    setAll(Headers<? extends K, ? extends V, ?> headers)
    Retains all current headers but calls Headers.set(K, V) for each entry in headers.
    DefaultHeadersImpl<K,V>
    setBoolean(K name, boolean value)
    Set the name to value.
    DefaultHeadersImpl<K,V>
    setByte(K name, byte value)
    Set the name to value.
    DefaultHeadersImpl<K,V>
    setChar(K name, char value)
    Set the name to value.
    DefaultHeadersImpl<K,V>
    setDouble(K name, double value)
    Set the name to value.
    DefaultHeadersImpl<K,V>
    setFloat(K name, float value)
    Set the name to value.
    DefaultHeadersImpl<K,V>
    setInt(K name, int value)
    Set the name to value.
    DefaultHeadersImpl<K,V>
    setLong(K name, long value)
    Set the name to value.
    DefaultHeadersImpl<K,V>
    setObject(K name, Iterable<?> values)
    Sets a header with the specified name and values.
    DefaultHeadersImpl<K,V>
    setObject(K name, Object value)
    Sets a new header.
    DefaultHeadersImpl<K,V>
    setObject(K name, Object... values)
    Sets a header with the specified name and values.
    DefaultHeadersImpl<K,V>
    setShort(K name, short value)
    Set the name to value.
    DefaultHeadersImpl<K,V>
    setTimeMillis(K name, long value)
    Set the name to value.
    int
    size()
    Returns the number of headers in this object.
    String
    toString()
     
    protected void
    validateName(DefaultHeaders.NameValidator<K> validator, boolean forAdd, K name)
    Call out to the given DefaultHeaders.NameValidator to validate the given name.
    protected void
    validateValue(DefaultHeaders.ValueValidator<V> validator, K name, V value)
     
    protected ValueConverter<V>
    valueConverter()
     
    Iterator<V>
    valueIterator(K name)
    Equivalent to DefaultHeaders.getAll(Object) but no intermediate list is generated.
    protected DefaultHeaders.ValueValidator<V>
    valueValidator()
     

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface Iterable

    forEach, spliterator
  • Constructor Details

    • DefaultHeadersImpl

      public DefaultHeadersImpl(HashingStrategy<K> nameHashingStrategy, ValueConverter<V> valueConverter, DefaultHeaders.NameValidator<K> nameValidator)
    • DefaultHeadersImpl

      public DefaultHeadersImpl(HashingStrategy<K> nameHashingStrategy, ValueConverter<V> valueConverter, DefaultHeaders.NameValidator<K> nameValidator, int arraySizeHint, DefaultHeaders.ValueValidator<V> valueValidator)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.