@ChannelHandler.Sharable
public class SocksProxyHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.socks.SocksRequest>
Constructor and Description |
---|
SocksProxyHandler(LifeCycle server,
MockServerLogger mockServerLogger) |
Modifier and Type | Method and Description |
---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.socks.SocksRequest socksRequest) |
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
acceptInboundMessage, channelRead
channelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public SocksProxyHandler(LifeCycle server, MockServerLogger mockServerLogger)
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.socks.SocksRequest socksRequest)
channelRead0
in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.socks.SocksRequest>
public void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelReadComplete
in interface io.netty.channel.ChannelInboundHandler
channelReadComplete
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
Copyright © 2018. All rights reserved.