Class HpackStaticTable

java.lang.Object
io.netty.handler.codec.http2.HpackStaticTable

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

    • NOT_FOUND

      static final int NOT_FOUND
      See Also:
    • 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:
    • HEADER_NAMES_TABLE_SHIFT

      private static final int HEADER_NAMES_TABLE_SHIFT
    • HEADER_NAMES

      private static final HpackStaticTable.HeaderNameIndex[] HEADER_NAMES
    • HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SIZE

      private static final int HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SIZE
      See Also:
    • HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SHIFT

      private static final int HEADERS_WITH_NON_EMPTY_VALUES_TABLE_SHIFT
    • HEADERS_WITH_NON_EMPTY_VALUES

      private static final HpackStaticTable.HeaderIndex[] HEADERS_WITH_NON_EMPTY_VALUES
    • length

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

    • HpackStaticTable

      private HpackStaticTable()
  • Method Details

    • newEmptyHeaderField

      private static HpackHeaderField newEmptyHeaderField(AsciiString name)
    • newEmptyHeaderField

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

      private static HpackHeaderField newHeaderField(AsciiString name, java.lang.String value)
    • newPseudoHeaderMethodField

      private static HpackHeaderField newPseudoHeaderMethodField(HttpMethod method)
    • newPseudoHeaderField

      private static HpackHeaderField newPseudoHeaderField(Http2Headers.PseudoHeaderName name, AsciiString value)
    • newPseudoHeaderField

      private static HpackHeaderField newPseudoHeaderField(Http2Headers.PseudoHeaderName name, java.lang.String value)
    • newEmptyPseudoHeaderField

      private static HpackHeaderField newEmptyPseudoHeaderField(Http2Headers.PseudoHeaderName name)
    • 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.
    • getEntry

      private static HpackStaticTable.HeaderNameIndex getEntry(java.lang.CharSequence name)
    • 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)