private final class HttpClientCodec.Decoder extends HttpResponseDecoder
HttpMessageDecoder.StateChannelHandler.Sharablecumulation, DEFAULT_MAX_COMPOSITEBUFFER_COMPONENTS| Constructor and Description |
|---|
Decoder(int maxInitialLineLength,
int maxHeaderSize,
int maxChunkSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelClosed(ChannelHandlerContext ctx,
ChannelStateEvent e)
Invoked when a
Channel was closed and all its related resources
were released. |
protected java.lang.Object |
decode(ChannelHandlerContext ctx,
Channel channel,
ChannelBuffer buffer,
HttpMessageDecoder.State state)
Decodes the received packets so far into a frame.
|
private void |
decrement(java.lang.Object msg) |
protected boolean |
isContentAlwaysEmpty(HttpMessage msg) |
createMessage, isDecodingRequestcheckpoint, checkpoint, cleanup, decode, decodeLast, decodeLast, getState, internalBuffer, messageReceived, setStateactualReadableBytes, afterAdd, afterRemove, appendToCumulation, beforeAdd, beforeRemove, channelDisconnected, exceptionCaught, extractFrame, getMaxCumulationBufferCapacity, getMaxCumulationBufferComponents, isUnfold, newCumulationBuffer, replace, setMaxCumulationBufferCapacity, setMaxCumulationBufferComponents, setUnfold, unfoldAndFireMessageReceived, updateCumulationchannelBound, channelConnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream, writeCompleteprotected java.lang.Object decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, HttpMessageDecoder.State state) throws java.lang.Exception
ReplayingDecoderdecode in class HttpMessageDecoderctx - the context of this handlerchannel - the current channelbuffer - the cumulative buffer of received packets so far.
Note that the buffer might be empty, which means you
should not make an assumption that the buffer contains
at least one byte in your decoder implementation.state - the current decoder state (null if unused)java.lang.Exceptionprivate void decrement(java.lang.Object msg)
protected boolean isContentAlwaysEmpty(HttpMessage msg)
isContentAlwaysEmpty in class HttpMessageDecoderpublic void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws java.lang.Exception
SimpleChannelUpstreamHandlerChannel was closed and all its related resources
were released.channelClosed in class FrameDecoderjava.lang.Exception