Class HpackStaticTable


  • final class HpackStaticTable
    extends java.lang.Object
    • Field Detail

      • STATIC_TABLE

        private static final java.util.List<HpackHeaderField> STATIC_TABLE
      • STATIC_INDEX_BY_NAME

        private static final CharSequenceMap<java.lang.Integer> STATIC_INDEX_BY_NAME
      • MAX_SAME_NAME_FIELD_INDEX

        private static final int MAX_SAME_NAME_FIELD_INDEX
      • length

        static final int length
        The number of header fields in the static table.
    • Constructor Detail

      • HpackStaticTable

        private HpackStaticTable()
    • Method Detail

      • newEmptyHeaderField

        private static HpackHeaderField newEmptyHeaderField​(java.lang.String name)
      • newHeaderField

        private static HpackHeaderField newHeaderField​(java.lang.String name,
                                                       java.lang.String value)
      • getEntry

        static HpackHeaderField getEntry​(int index)
        Return the header field at the given index value.
      • getIndex

        static int getIndex​(java.lang.CharSequence name)
        Returns the lowest index value for the given header field name in the static table. Returns -1 if the header field name is not in the static table.
      • getIndexInsensitive

        static int getIndexInsensitive​(java.lang.CharSequence name,
                                       java.lang.CharSequence value)
        Returns the index value for the given header field in the static table. Returns -1 if the header field is not in the static table.
      • createMap

        private static CharSequenceMap<java.lang.Integer> createMap()
      • maxSameNameFieldIndex

        private static int maxSameNameFieldIndex()
        Returns the last position in the array that contains multiple fields with the same name. Starting from this position, all names are unique. Similary to getIndexInsensitive(java.lang.CharSequence,java.lang.CharSequence) method assumes all entries for a given header field are sequential