SpdySynStreamFrames, SpdySynReplyFrames,
and SpdyDataFrames into FullHttpRequests and FullHttpResponses.
| Modifier and Type | Field and Description |
|---|---|
| private final HttpHeadersFactory | |
| private final int | |
| private final Map | |
| private final int | |
| private final HttpHeadersFactory |
| Access | Constructor and Description |
|---|---|
| public | SpdyHttpDecoder(SpdyVersion
the protocol version version, int the maximum length of the message content.
If the length of the message content exceeds this value,
a maxContentLength)TooLongFrameException will be raised.Creates a new instance. |
| public | SpdyHttpDecoder(SpdyVersion
the protocol version version, int the maximum length of the message content.
If the length of the message content exceeds this value,
a maxContentLength, boolean TooLongFrameException will be raised.true if http headers should be validated
Deprecated
Use the
Creates a new instance.
SpdyHttpDecoder(SpdyVersion, int, Map, HttpHeadersFactory, HttpHeadersFactory)
constructor instead.
|
| protected | SpdyHttpDecoder(SpdyVersion
the protocol version version, int the maximum length of the message content.
If the length of the message content exceeds this value,
a maxContentLength, Map<Integer, FullHttpMessage> TooLongFrameException will be raised.the messageMap)Map used to hold partially received messages.Creates a new instance with the specified parameters. |
| protected | SpdyHttpDecoder(SpdyVersion
the protocol version version, int the maximum length of the message content.
If the length of the message content exceeds this value,
a maxContentLength, Map<Integer, FullHttpMessage> TooLongFrameException will be raised.the messageMap, boolean Map used to hold partially received messages.true if http headers should be validated
Deprecated
Use the
Creates a new instance with the specified parameters.
SpdyHttpDecoder(SpdyVersion, int, Map, HttpHeadersFactory, HttpHeadersFactory)
constructor instead.
|
| protected | SpdyHttpDecoder(SpdyVersion
the protocol version version, int the maximum length of the message content.
If the length of the message content exceeds this value,
a maxContentLength, Map<Integer, FullHttpMessage> TooLongFrameException will be raised.the messageMap, HttpHeadersFactory Map used to hold partially received messages.The factory used for creating HTTP headers headersFactory, HttpHeadersFactory The factory used for creating HTTP trailers. trailersFactory)Creates a new instance with the specified parameters. |
| Modifier and Type | Method and Description |
|---|---|
| public void | channelInactive(ChannelHandlerContext ctx)
Overrides io. Implements io. ChannelHandlerContext#fireChannelInactive() to forward
to the next ChannelInboundHandler in the ChannelPipeline.
|
| private static FullHttpRequest | |
| private FullHttpResponse | |
| protected void | decode(ChannelHandlerContext
the ctx, SpdyFrame ChannelHandlerContext which this MessageToMessageDecoder belongs tothe message to decode to an other one msg, List<Object> the out)List to which decoded messages should be addedImplements abstract io. |
| protected FullHttpMessage | |
| protected FullHttpMessage | |
| protected FullHttpMessage |
| headersFactory | back to summary |
|---|---|
| private final HttpHeadersFactory headersFactory | |
| maxContentLength | back to summary |
|---|---|
| private final int maxContentLength | |
| messageMap | back to summary |
|---|---|
| private final Map<Integer, FullHttpMessage> messageMap | |
| spdyVersion | back to summary |
|---|---|
| private final int spdyVersion | |
| trailersFactory | back to summary |
|---|---|
| private final HttpHeadersFactory trailersFactory | |
| SpdyHttpDecoder | back to summary |
|---|---|
| public SpdyHttpDecoder(SpdyVersion version, int maxContentLength) Creates a new instance.
| |
| SpdyHttpDecoder | back to summary |
|---|---|
| public SpdyHttpDecoder(SpdyVersion version, int maxContentLength, boolean validateHeaders)
Deprecated Use the Creates a new instance.
| |
| SpdyHttpDecoder | back to summary |
|---|---|
| protected SpdyHttpDecoder(SpdyVersion version, int maxContentLength, Map<Integer, FullHttpMessage> messageMap) Creates a new instance with the specified parameters.
| |
| SpdyHttpDecoder | back to summary |
|---|---|
| protected SpdyHttpDecoder(SpdyVersion version, int maxContentLength, Map<Integer, FullHttpMessage> messageMap, boolean validateHeaders)
Deprecated Use the Creates a new instance with the specified parameters.
| |
| SpdyHttpDecoder | back to summary |
|---|---|
| protected SpdyHttpDecoder(SpdyVersion version, int maxContentLength, Map<Integer, FullHttpMessage> messageMap, HttpHeadersFactory headersFactory, HttpHeadersFactory trailersFactory) Creates a new instance with the specified parameters.
| |
| channelInactive | back to summary |
|---|---|
| public void channelInactive(ChannelHandlerContext ctx) throws Exception Overrides io. Implements io. Doc from io. Calls
| |
| createHttpRequest | back to summary |
|---|---|
| private static FullHttpRequest createHttpRequest(SpdyHeadersFrame requestFrame, ByteBufAllocator alloc) throws Exception | |
| createHttpResponse | back to summary |
|---|---|
| private FullHttpResponse createHttpResponse(SpdyHeadersFrame responseFrame, ByteBufAllocator alloc) throws Exception | |
| decode | back to summary |
|---|---|
| protected void decode(ChannelHandlerContext ctx, SpdyFrame msg, List<Object> out) throws Exception Implements abstract io. Doc from io. Decode from one message to an other. This method will be called for each written message that can be handled by this decoder.
| |
| getMessage | back to summary |
|---|---|
| protected FullHttpMessage getMessage(int streamId) | |
| putMessage | back to summary |
|---|---|
| protected FullHttpMessage putMessage(int streamId, FullHttpMessage message) | |
| removeMessage | back to summary |
|---|---|
| protected FullHttpMessage removeMessage(int streamId) | |