public class SpdyHttpDecoder extends io.netty.handler.codec.MessageToMessageDecoder<Object,HttpMessage>
SpdySynStreamFrames, SpdySynReplyFrames,
and SpdyDataFrames into HttpRequests and HttpResponses.| Constructor and Description |
|---|
SpdyHttpDecoder(int version,
int maxContentLength)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
HttpMessage |
decode(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
inboundBufferUpdated, isDecodable, newInboundBufferafterAdd, afterRemove, beforeAdd, beforeRemove, channelActive, channelInactive, channelRegistered, channelUnregistered, exceptionCaught, userEventTriggeredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic SpdyHttpDecoder(int version,
int maxContentLength)
version - the protocol versionmaxContentLength - the maximum length of the message content.
If the length of the message content exceeds this value,
a TooLongFrameException will be raised.public HttpMessage decode(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception
decode in class io.netty.handler.codec.MessageToMessageDecoder<Object,HttpMessage>ExceptionCopyright © 2008-2012 The Netty Project. All Rights Reserved.