@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, channelRead0channelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableprotected 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.ChannelInboundHandlerchannelReadComplete in class io.netty.channel.ChannelInboundHandlerAdapterpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterCopyright © 2022. All rights reserved.