public class SpdyFrameDecoder extends ByteToMessageDecoder
ByteBuf
s into SPDY Frames.ChannelHandler.Sharable
Modifier | Constructor and Description |
---|---|
|
SpdyFrameDecoder(SpdyVersion version)
Creates a new instance with the specified
version and the default
maxChunkSize (8192) and maxHeaderSize (16384) . |
|
SpdyFrameDecoder(SpdyVersion version,
int maxChunkSize,
int maxHeaderSize)
Creates a new instance with the specified parameters.
|
protected |
SpdyFrameDecoder(SpdyVersion version,
int maxChunkSize,
io.netty.handler.codec.spdy.SpdyHeaderBlockDecoder headerBlockDecoder) |
Modifier and Type | Method and Description |
---|---|
protected void |
decode(ChannelHandlerContext ctx,
ByteBuf buffer,
List<Object> out)
Decode the from one
ByteBuf to an other. |
void |
decodeLast(ChannelHandlerContext ctx,
ByteBuf in,
List<Object> out)
Is called one last time when the
ChannelHandlerContext goes in-active. |
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setSingleDecode
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
handlerAdded, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlerAdded
public SpdyFrameDecoder(SpdyVersion version)
version
and the default
maxChunkSize (8192)
and maxHeaderSize (16384)
.public SpdyFrameDecoder(SpdyVersion version, int maxChunkSize, int maxHeaderSize)
protected SpdyFrameDecoder(SpdyVersion version, int maxChunkSize, io.netty.handler.codec.spdy.SpdyHeaderBlockDecoder headerBlockDecoder)
public void decodeLast(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception
ByteToMessageDecoder
ChannelHandlerContext
goes in-active. Which means the
ByteToMessageDecoder.channelInactive(ChannelHandlerContext)
was triggered.
By default this will just call ByteToMessageDecoder.decode(ChannelHandlerContext, ByteBuf, List)
but sub-classes may
override this for some special cleanup operation.decodeLast
in class ByteToMessageDecoder
Exception
protected void decode(ChannelHandlerContext ctx, ByteBuf buffer, List<Object> out) throws Exception
ByteToMessageDecoder
ByteBuf
to an other. This method will be called till either the input
ByteBuf
has nothing to read anymore, till nothing was read from the input ByteBuf
or till
this method returns null
.decode
in class ByteToMessageDecoder
ctx
- the ChannelHandlerContext
which this ByteToMessageDecoder
belongs tobuffer
- the ByteBuf
from which to read dataout
- the List
to which decoded messages should be addedException
- is thrown if an error accourCopyright © 2008–2013 The Netty Project. All rights reserved.