abstract class SpdyHeaderBlockDecoder
extends java.lang.Object
Constructor and Description |
---|
SpdyHeaderBlockDecoder() |
Modifier and Type | Method and Description |
---|---|
(package private) abstract void |
decode(ByteBufAllocator alloc,
ByteBuf headerBlock,
SpdyHeadersFrame frame)
Decodes a SPDY Header Block, adding the Name/Value pairs to the given Headers frame.
|
(package private) abstract void |
end() |
(package private) abstract void |
endHeaderBlock(SpdyHeadersFrame frame) |
(package private) static SpdyHeaderBlockDecoder |
newInstance(SpdyVersion spdyVersion,
int maxHeaderSize) |
static SpdyHeaderBlockDecoder newInstance(SpdyVersion spdyVersion, int maxHeaderSize)
abstract void decode(ByteBufAllocator alloc, ByteBuf headerBlock, SpdyHeadersFrame frame) throws java.lang.Exception
alloc
- the ByteBufAllocator
which can be used to allocate new ByteBuf
sheaderBlock
- the HeaderBlock to decodeframe
- the Headers frame that receives the Name/Value pairsjava.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.abstract void endHeaderBlock(SpdyHeadersFrame frame) throws java.lang.Exception
java.lang.Exception
abstract void end()