Class RelayConnectHandler<T>

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler
    Direct Known Subclasses:
    HttpConnectHandler, SocksConnectHandler

    @Sharable
    public abstract class RelayConnectHandler<T>
    extends io.netty.channel.SimpleChannelInboundHandler<T>
    • Method Detail

      • channelRead0

        public void channelRead0​(io.netty.channel.ChannelHandlerContext proxyClientCtx,
                                 T request)
        Specified by:
        channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<T>
      • exceptionCaught

        public void exceptionCaught​(io.netty.channel.ChannelHandlerContext ctx,
                                    Throwable cause)
        Specified by:
        exceptionCaught in interface io.netty.channel.ChannelHandler
        Specified by:
        exceptionCaught in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        exceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter
      • removeCodecSupport

        protected abstract void removeCodecSupport​(io.netty.channel.ChannelHandlerContext ctx)
      • successResponse

        protected abstract Object successResponse​(Object request)
      • failureResponse

        protected abstract Object failureResponse​(Object request)
      • removeHandler

        protected void removeHandler​(io.netty.channel.ChannelPipeline pipeline,
                                     Class<? extends io.netty.channel.ChannelHandler> handlerType)
      • removeHandler

        protected void removeHandler​(io.netty.channel.ChannelPipeline pipeline,
                                     io.netty.channel.ChannelHandler channelHandler)