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

public abstract Class SpdyHeaderBlockDecoder

extends Object
Class Inheritance
Known Direct Subclasses
io.netty.handler.codec.spdy.SpdyHeaderBlockRawDecoder
Imports
io.netty.buffer.ByteBuf, .ByteBufAllocator

Super-class for SPDY header-block decoders.
See Also
SpdyHeaderBlockRawDecoder, SpdyHeaderBlockZlibDecoder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract 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
)

Decodes a SPDY Header Block, adding the Name/Value pairs to the given Headers frame.

pack-priv abstract void
end()

pack-priv abstract void
pack-priv static SpdyHeaderBlockDecoder
newInstance(SpdyVersion spdyVersion, int maxHeaderSize)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SpdyHeaderBlockDecoderback to summary
public SpdyHeaderBlockDecoder()

Method Detail

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

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

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.
endback to summary
pack-priv abstract void end()
endHeaderBlockback to summary
pack-priv abstract void endHeaderBlock(SpdyHeadersFrame frame) throws Exception
newInstanceback to summary
pack-priv static SpdyHeaderBlockDecoder newInstance(SpdyVersion spdyVersion, int maxHeaderSize)