public class SocksAuthResponseDecoder extends ReplayingDecoder<SocksAuthResponseDecoder.State>
ChannelBuffers into SocksAuthResponse.
Before returning SocksResponse decoder removes itself from pipeline.| Modifier and Type | Class and Description |
|---|---|
static class |
SocksAuthResponseDecoder.State |
ChannelHandler.Sharablecumulation, DEFAULT_MAX_COMPOSITEBUFFER_COMPONENTS| Constructor and Description |
|---|
SocksAuthResponseDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
decode(ChannelHandlerContext ctx,
Channel channel,
ChannelBuffer buffer,
SocksAuthResponseDecoder.State state)
Decodes the received packets so far into a frame.
|
static String |
getName()
Deprecated.
Will be removed at the next minor version bump.
|
checkpoint, checkpoint, cleanup, decode, decodeLast, decodeLast, getState, internalBuffer, messageReceived, setStateactualReadableBytes, afterAdd, afterRemove, appendToCumulation, beforeAdd, beforeRemove, channelClosed, channelDisconnected, exceptionCaught, extractFrame, getMaxCumulationBufferCapacity, getMaxCumulationBufferComponents, isUnfold, newCumulationBuffer, replace, setMaxCumulationBufferCapacity, setMaxCumulationBufferComponents, setUnfold, unfoldAndFireMessageReceived, updateCumulationchannelBound, channelConnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream, writeComplete@Deprecated public static String getName()
protected Object decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer, SocksAuthResponseDecoder.State state) throws Exception
ReplayingDecoderdecode in class ReplayingDecoder<SocksAuthResponseDecoder.State>ctx - 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)ExceptionCopyright © 2008-2015 The Netty Project. All Rights Reserved.