Class SpdyHeaderBlockDecoder
java.lang.Object
io.netty.handler.codec.spdy.SpdyHeaderBlockDecoder
- Direct Known Subclasses:
SpdyHeaderBlockRawDecoder
public abstract class SpdyHeaderBlockDecoder
extends java.lang.Object
Super-class for SPDY header-block decoders.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract voiddecode(ByteBufAllocator alloc, ByteBuf headerBlock, SpdyHeadersFrame frame) Decodes a SPDY Header Block, adding the Name/Value pairs to the given Headers frame.(package private) abstract voidend()(package private) abstract voidendHeaderBlock(SpdyHeadersFrame frame) (package private) static SpdyHeaderBlockDecodernewInstance(SpdyVersion spdyVersion, int maxHeaderSize) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SpdyHeaderBlockDecoder
public SpdyHeaderBlockDecoder()
-
-
Method Details
-
newInstance
-
decode
abstract void decode(ByteBufAllocator alloc, ByteBuf headerBlock, SpdyHeadersFrame frame) throws java.lang.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- theByteBufAllocatorwhich can be used to allocate newByteBufsheaderBlock- the HeaderBlock to decodeframe- 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.
-
endHeaderBlock
- Throws:
java.lang.Exception
-
end
abstract void end()
-