public class SpdyHttpDecoder extends OneToOneDecoder
SpdySynStreamFrame
s, SpdySynReplyFrame
s,
and SpdyDataFrame
s into HttpRequest
s and HttpResponse
s.ChannelHandler.Sharable
Constructor and Description |
---|
SpdyHttpDecoder(int maxContentLength)
Deprecated.
|
SpdyHttpDecoder(int version,
int maxContentLength)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
decode(ChannelHandlerContext ctx,
Channel channel,
Object msg)
Transforms the specified received message into another message and return
the transformed message.
|
handleUpstream
@Deprecated public SpdyHttpDecoder(int maxContentLength)
maxContentLength
- the maximum length of the message content.
If the length of the message content exceeds this value,
a TooLongFrameException
will be raised.public 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.protected Object decode(ChannelHandlerContext ctx, Channel channel, Object msg) throws Exception
OneToOneDecoder
null
if the received message
is supposed to be discarded.decode
in class OneToOneDecoder
Exception
Copyright © 2008-2013 The Netty Project. All Rights Reserved.