public class SpdyHttpDecoder extends OneToOneDecoder
SpdySynStreamFrames, SpdySynReplyFrames,
and SpdyDataFrames into HttpRequests and HttpResponses.ChannelHandler.Sharable| Modifier | Constructor and Description |
|---|---|
|
SpdyHttpDecoder(SpdyVersion spdyVersion,
int maxContentLength)
Creates a new instance.
|
protected |
SpdyHttpDecoder(SpdyVersion spdyVersion,
int maxContentLength,
Map<Integer,HttpMessage> messageMap)
Creates a new instance with the specified parameters.
|
| 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.
|
protected HttpMessage |
getMessage(int streamId) |
protected HttpMessage |
putMessage(int streamId,
HttpMessage message) |
protected HttpMessage |
removeMessage(int streamId) |
handleUpstreampublic SpdyHttpDecoder(SpdyVersion spdyVersion, int maxContentLength)
spdyVersion - 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 SpdyHttpDecoder(SpdyVersion spdyVersion, int maxContentLength, Map<Integer,HttpMessage> messageMap)
spdyVersion - 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.messageMap - the Map used to hold partially received messages.protected HttpMessage putMessage(int streamId, HttpMessage message)
protected HttpMessage getMessage(int streamId)
protected HttpMessage removeMessage(int streamId)
protected Object decode(ChannelHandlerContext ctx, Channel channel, Object msg) throws Exception
OneToOneDecodernull if the received message
is supposed to be discarded.decode in class OneToOneDecoderExceptionCopyright © 2008-2015 The Netty Project. All Rights Reserved.