Class SpdyHeaderBlockZlibDecoder

    • Field Detail

      • DEFAULT_BUFFER_CAPACITY

        private static final int DEFAULT_BUFFER_CAPACITY
        See Also:
        Constant Field Values
      • decompressor

        private final java.util.zip.Inflater decompressor
    • Constructor Detail

      • SpdyHeaderBlockZlibDecoder

        SpdyHeaderBlockZlibDecoder​(SpdyVersion spdyVersion,
                                   int maxHeaderSize)
    • Method Detail

      • decode

        void decode​(ChannelBuffer headerBlock,
                    SpdyHeadersFrame frame)
             throws java.lang.Exception
        Description copied from class: SpdyHeaderBlockDecoder
        Decodes a SPDY Header Block, adding the Name/Value pairs to the given Headers frame. If the header block is malformed, the Headers frame will be marked as invalid. A stream error with status code PROTOCOL_ERROR must be issued in response to an invalid frame.
        Overrides:
        decode in class SpdyHeaderBlockRawDecoder
        Parameters:
        headerBlock - the HeaderBlock to decode
        frame - the Headers frame that receives the Name/Value pairs
        Throws:
        java.lang.Exception - If the header block is malformed in a way that prevents any future decoding of any other header blocks, an exception will be thrown. A session error with status code PROTOCOL_ERROR must be issued.
      • decompress

        private int decompress​(SpdyHeadersFrame frame)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • ensureBuffer

        private void ensureBuffer()