Class HpackStaticTable


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

      • STATIC_TABLE

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

        private static final int HEADER_NAMES_TABLE_SIZE
        See Also:
        Constant Field Values
      • HEADER_NAMES_TABLE_SHIFT

        private static final int HEADER_NAMES_TABLE_SHIFT
      • HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SIZE

        private static final int HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SIZE
        See Also:
        Constant Field Values
      • HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SHIFT

        private static final int HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SHIFT
      • 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.
      • headerNameBucket

        private static int headerNameBucket​(java.lang.CharSequence name)
      • headerBucket

        private static int headerBucket​(java.lang.CharSequence value)
      • bucket

        private static int bucket​(java.lang.CharSequence s,
                                  int shift,
                                  int mask)