public final class SpdyFrameCodec extends io.netty.channel.CombinedChannelDuplexHandler implements io.netty.channel.ChannelInboundByteHandler, io.netty.channel.ChannelOutboundMessageHandler<SpdyDataOrControlFrame>
SpdyFrameDecoder and SpdyFrameEncoder.| Constructor and Description |
|---|
SpdyFrameCodec(int version)
Creates a new instance with the specified
version and
the default decoder and encoder options
(maxChunkSize (8192), maxHeaderSize (16384),
compressionLevel (6), windowBits (15),
and memLevel (8)). |
SpdyFrameCodec(int version,
int maxChunkSize,
int maxHeaderSize,
int compressionLevel,
int windowBits,
int memLevel)
Creates a new instance with the specified decoder and encoder options.
|
| Modifier and Type | Method and Description |
|---|---|
void |
discardInboundReadBytes(io.netty.channel.ChannelHandlerContext ctx) |
void |
freeInboundBuffer(io.netty.channel.ChannelHandlerContext ctx) |
void |
freeOutboundBuffer(io.netty.channel.ChannelHandlerContext ctx) |
io.netty.buffer.ByteBuf |
newInboundBuffer(io.netty.channel.ChannelHandlerContext ctx) |
io.netty.buffer.MessageBuf<SpdyDataOrControlFrame> |
newOutboundBuffer(io.netty.channel.ChannelHandlerContext ctx) |
afterAdd, afterRemove, beforeAdd, beforeRemove, bind, channelActive, channelInactive, channelRegistered, channelUnregistered, close, connect, deregister, disconnect, exceptionCaught, flush, inboundBufferUpdated, init, operationHandler, read, sendFile, stateHandler, userEventTriggeredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchannelActive, channelInactive, channelReadSuspended, channelRegistered, channelUnregistered, inboundBufferUpdated, userEventTriggeredpublic SpdyFrameCodec(int version)
version and
the default decoder and encoder options
(maxChunkSize (8192), maxHeaderSize (16384),
compressionLevel (6), windowBits (15),
and memLevel (8)).public SpdyFrameCodec(int version,
int maxChunkSize,
int maxHeaderSize,
int compressionLevel,
int windowBits,
int memLevel)
public io.netty.buffer.ByteBuf newInboundBuffer(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
newInboundBuffer in interface io.netty.channel.ChannelInboundByteHandlerExceptionpublic void discardInboundReadBytes(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
discardInboundReadBytes in interface io.netty.channel.ChannelInboundByteHandlerExceptionpublic void freeInboundBuffer(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
Exceptionpublic io.netty.buffer.MessageBuf<SpdyDataOrControlFrame> newOutboundBuffer(io.netty.channel.ChannelHandlerContext ctx) throws Exception
newOutboundBuffer in interface io.netty.channel.ChannelOutboundMessageHandler<SpdyDataOrControlFrame>ExceptionCopyright © 2008-2013 The Netty Project. All Rights Reserved.