Class SocksAuthResponseDecoder

All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler

public class SocksAuthResponseDecoder extends ReplayingDecoder<SocksAuthResponseDecoder.State>
Decodes ByteBufs into SocksAuthResponse. Before returning SocksResponse decoder removes itself from pipeline.
  • Constructor Details

    • SocksAuthResponseDecoder

      public SocksAuthResponseDecoder()
  • Method Details

    • decode

      protected void decode(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, java.util.List<java.lang.Object> out) throws java.lang.Exception
      Description copied from class: ByteToMessageDecoder
      Decode the from one ByteBuf to an other. This method will be called till either the input ByteBuf has nothing to read when return from this method or till nothing was read from the input ByteBuf.
      Specified by:
      decode in class ByteToMessageDecoder
      Parameters:
      channelHandlerContext - the ChannelHandlerContext which this ByteToMessageDecoder belongs to
      byteBuf - the ByteBuf from which to read data
      out - the List to which decoded messages should be added
      Throws:
      java.lang.Exception - is thrown if an error occurs