Class HpackDecoder


  • public class HpackDecoder
    extends java.lang.Object
    Hpack Decoder

    This is not thread safe and may only be called by 1 thread at a time.

    • Constructor Detail

      • HpackDecoder

        @Deprecated
        public HpackDecoder​(int localMaxDynamicTableSize,
                            int maxHeaderSize)
        Deprecated.
      • HpackDecoder

        public HpackDecoder​(int maxHeaderSize)
        Parameters:
        maxHeaderSize - The maximum allowed size of a decoded headers block, expressed as total of all name and value bytes, plus 32 bytes per field
    • Method Detail

      • getMaxTableCapacity

        public int getMaxTableCapacity()
      • setMaxTableCapacity

        public void setMaxTableCapacity​(int maxTableCapacity)

        Sets the limit for the capacity of the dynamic header table.

        This value acts as a limit for the values received from the remote peer via the HPACK dynamic table size update instruction.

        After calling this method, a SETTINGS frame must be sent to the other peer, containing the SETTINGS_HEADER_TABLE_SIZE setting with the value passed as argument to this method.

        Parameters:
        maxTableCapacity - the limit for capacity of the dynamic header table
      • setLocalMaxDynamicTableSize

        @Deprecated
        public void setLocalMaxDynamicTableSize​(int maxTableSizeLimit)
        Deprecated.
        Parameters:
        maxTableSizeLimit - the local dynamic table max size
      • getMaxHeaderListSize

        public int getMaxHeaderListSize()
      • setMaxHeaderListSize

        public void setMaxHeaderListSize​(int maxHeaderListSize)
      • toISO88591String

        public static java.lang.String toISO88591String​(java.nio.ByteBuffer buffer,
                                                        int length)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object