@ChannelHandler.Sharable
public abstract class SocksProxyHandler<T>
extends io.netty.channel.SimpleChannelInboundHandler<T>
Modifier and Type | Field and Description |
---|---|
protected MockServerLogger |
mockServerLogger |
protected LifeCycle |
server |
Constructor and Description |
---|
SocksProxyHandler(LifeCycle server,
MockServerLogger mockServerLogger) |
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 LifeCycle server
protected final MockServerLogger mockServerLogger
public SocksProxyHandler(LifeCycle server, MockServerLogger mockServerLogger)
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 © 2020. All rights reserved.