public class SpdyFrameDecoder extends ByteToMessageDecoder
ByteBufs 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, setSingleDecodechannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredhandlerAdded, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAddedpublic 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
ByteToMessageDecoderChannelHandlerContext 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 ByteToMessageDecoderExceptionprotected void decode(ChannelHandlerContext ctx, ByteBuf buffer, List<Object> out) throws Exception
ByteToMessageDecoderByteBuf 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 ByteToMessageDecoderctx - 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–2014 The Netty Project. All rights reserved.