public class SpdyHttpDecoder extends OneToOneDecoder
SpdySynStreamFrame
s, SpdySynReplyFrame
s,
and SpdyDataFrame
s into HttpRequest
s and HttpResponse
s.ChannelHandler.Sharable
Modifier | Constructor and Description |
---|---|
|
SpdyHttpDecoder(int version,
int maxContentLength)
Creates a new instance.
|
protected |
SpdyHttpDecoder(int version,
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) |
handleUpstream
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 SpdyHttpDecoder(int version, int maxContentLength, Map<Integer,HttpMessage> messageMap)
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.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
OneToOneDecoder
null
if the received message
is supposed to be discarded.decode
in class OneToOneDecoder
Exception
Copyright © 2008-2014 The Netty Project. All Rights Reserved.