public class SpdyHttpDecoder extends io.netty.handler.codec.MessageToMessageDecoder<SpdyFrame>
SpdySynStreamFrames, SpdySynReplyFrames,
and SpdyDataFrames into FullHttpRequests and FullHttpResponses.| Modifier | Constructor and Description |
|---|---|
|
SpdyHttpDecoder(SpdyVersion version,
int maxContentLength)
Creates a new instance.
|
|
SpdyHttpDecoder(SpdyVersion version,
int maxContentLength,
boolean validateHeaders)
Deprecated.
Use the
SpdyHttpDecoder(SpdyVersion, int, Map, HttpHeadersFactory, HttpHeadersFactory)
constructor instead. |
protected |
SpdyHttpDecoder(SpdyVersion version,
int maxContentLength,
Map<Integer,FullHttpMessage> messageMap)
Creates a new instance with the specified parameters.
|
protected |
SpdyHttpDecoder(SpdyVersion version,
int maxContentLength,
Map<Integer,FullHttpMessage> messageMap,
boolean validateHeaders)
Deprecated.
Use the
SpdyHttpDecoder(SpdyVersion, int, Map, HttpHeadersFactory, HttpHeadersFactory)
constructor instead. |
protected |
SpdyHttpDecoder(SpdyVersion version,
int maxContentLength,
Map<Integer,FullHttpMessage> messageMap,
HttpHeadersFactory headersFactory,
HttpHeadersFactory trailersFactory)
Creates a new instance with the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
SpdyFrame msg,
List<Object> out) |
protected FullHttpMessage |
getMessage(int streamId) |
protected FullHttpMessage |
putMessage(int streamId,
FullHttpMessage message) |
protected FullHttpMessage |
removeMessage(int streamId) |
acceptInboundMessage, channelReadchannelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic SpdyHttpDecoder(SpdyVersion 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.@Deprecated public SpdyHttpDecoder(SpdyVersion version, int maxContentLength, boolean validateHeaders)
SpdyHttpDecoder(SpdyVersion, int, Map, HttpHeadersFactory, HttpHeadersFactory)
constructor instead.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.validateHeaders - true if http headers should be validatedprotected SpdyHttpDecoder(SpdyVersion version, int maxContentLength, Map<Integer,FullHttpMessage> 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.@Deprecated protected SpdyHttpDecoder(SpdyVersion version, int maxContentLength, Map<Integer,FullHttpMessage> messageMap, boolean validateHeaders)
SpdyHttpDecoder(SpdyVersion, int, Map, HttpHeadersFactory, HttpHeadersFactory)
constructor instead.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.validateHeaders - true if http headers should be validatedprotected SpdyHttpDecoder(SpdyVersion version, int maxContentLength, Map<Integer,FullHttpMessage> messageMap, HttpHeadersFactory headersFactory, HttpHeadersFactory trailersFactory)
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.headersFactory - The factory used for creating HTTP headerstrailersFactory - The factory used for creating HTTP trailers.public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionprotected FullHttpMessage putMessage(int streamId, FullHttpMessage message)
protected FullHttpMessage getMessage(int streamId)
protected FullHttpMessage removeMessage(int streamId)
Copyright © 2008–2024 The Netty Project. All rights reserved.