@ChannelHandler.Sharable
public abstract class SocksProxyHandler<T>
extends io.netty.channel.SimpleChannelInboundHandler<T>
Modifier and Type | Field and Description |
---|---|
protected Configuration |
configuration |
protected MockServerLogger |
mockServerLogger |
protected LifeCycle |
server |
Constructor and Description |
---|
SocksProxyHandler(Configuration configuration,
MockServerLogger mockServerLogger,
LifeCycle server) |
Modifier and Type | Method and Description |
---|---|
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
protected void |
forwardConnection(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelHandler forwarder,
String addr,
int port) |
acceptInboundMessage, channelRead, channelRead0
channelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
protected final Configuration configuration
protected final LifeCycle server
protected final MockServerLogger mockServerLogger
public SocksProxyHandler(Configuration configuration, MockServerLogger mockServerLogger, LifeCycle server)
protected void forwardConnection(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelHandler forwarder, String addr, int port)
public void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
channelReadComplete
in interface io.netty.channel.ChannelInboundHandler
channelReadComplete
in class io.netty.channel.ChannelInboundHandlerAdapter
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 © 2022. All rights reserved.