Top Fields Constructors Methods
io.netty.handler.codec.spdy

pack-priv final Class SpdyHeaderBlockZlibDecoder

extends SpdyHeaderBlockRawDecoder
Class Inheritance
Imports
io.netty.buffer.ByteBuf, .ByteBufAllocator, java.util.zip.DataFormatException, .Inflater

Field Summary

Modifier and TypeField and Description
private ByteBuf
private final Inflater
private static final int
private static final SpdyProtocolException

Constructor Summary

AccessConstructor and Description
pack-priv
SpdyHeaderBlockZlibDecoder(SpdyVersion spdyVersion, int maxHeaderSize)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
decode(ByteBufAllocator
the ByteBufAllocator which can be used to allocate new ByteBufs
alloc
,
ByteBuf
the HeaderBlock to decode
headerBlock
,
SpdyHeadersFrame
the Headers frame that receives the Name/Value pairs
frame
)

Overrides io.netty.handler.codec.spdy.SpdyHeaderBlockRawDecoder.decode.

Decodes a SPDY Header Block, adding the Name/Value pairs to the given Headers frame.
private int
public void
pack-priv void
private void
private void
private int
setInput(ByteBuf compressed)

Inherited from io.netty.handler.codec.spdy.SpdyHeaderBlockRawDecoder:
decodeHeaderBlock

Field Detail

decompressedback to summary
private ByteBuf decompressed
decompressorback to summary
private final Inflater decompressor
DEFAULT_BUFFER_CAPACITYback to summary
private static final int DEFAULT_BUFFER_CAPACITY
INVALID_HEADER_BLOCKback to summary
private static final SpdyProtocolException INVALID_HEADER_BLOCK

Constructor Detail

SpdyHeaderBlockZlibDecoderback to summary
pack-priv SpdyHeaderBlockZlibDecoder(SpdyVersion spdyVersion, int maxHeaderSize)

Method Detail

decodeback to summary
pack-priv void decode(ByteBufAllocator alloc, ByteBuf headerBlock, SpdyHeadersFrame frame) throws Exception

Overrides io.netty.handler.codec.spdy.SpdyHeaderBlockRawDecoder.decode.

Doc from io.netty.handler.codec.spdy.SpdyHeaderBlockDecoder.decode.

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.

Parameters
alloc:ByteBufAllocator

the ByteBufAllocator which can be used to allocate new ByteBufs

headerBlock:ByteBuf

the HeaderBlock to decode

frame:SpdyHeadersFrame

the Headers frame that receives the Name/Value pairs

Annotations
@Override
Exceptions
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.
decompressback to summary
private int decompress(ByteBufAllocator alloc, SpdyHeadersFrame frame) throws Exception
endback to summary
public void end()

Overrides io.netty.handler.codec.spdy.SpdyHeaderBlockRawDecoder.end.

Annotations
@Override
endHeaderBlockback to summary
pack-priv void endHeaderBlock(SpdyHeadersFrame frame) throws Exception

Overrides io.netty.handler.codec.spdy.SpdyHeaderBlockRawDecoder.endHeaderBlock.

Annotations
@Override
ensureBufferback to summary
private void ensureBuffer(ByteBufAllocator alloc)
releaseBufferback to summary
private void releaseBuffer()

Hides io.netty.handler.codec.spdy.SpdyHeaderBlockRawDecoder.releaseBuffer.

setInputback to summary
private int setInput(ByteBuf compressed)