Class Socks4ConnectHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<T>
software.xdev.mockserver.netty.proxy.relay.RelayConnectHandler<T>
software.xdev.mockserver.netty.proxy.socks.SocksConnectHandler<io.netty.handler.codec.socksx.v4.Socks4CommandRequest>
software.xdev.mockserver.netty.proxy.socks.Socks4ConnectHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
@Sharable
public final class Socks4ConnectHandler
extends SocksConnectHandler<io.netty.handler.codec.socksx.v4.Socks4CommandRequest>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
Fields inherited from class software.xdev.mockserver.netty.proxy.relay.RelayConnectHandler
host, port, PROXIED, PROXIED_RESPONSE, PROXIED_SECURE -
Constructor Summary
ConstructorsConstructorDescriptionSocks4ConnectHandler(ServerConfiguration configuration, LifeCycle server, String host, int port) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectfailureResponse(Object request) protected voidremoveCodecSupport(io.netty.channel.ChannelHandlerContext ctx) protected ObjectsuccessResponse(Object request) Methods inherited from class software.xdev.mockserver.netty.proxy.relay.RelayConnectHandler
channelRead0, exceptionCaught, removeHandler, removeHandlerMethods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelReadMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Constructor Details
-
Socks4ConnectHandler
public Socks4ConnectHandler(ServerConfiguration configuration, LifeCycle server, String host, int port)
-
-
Method Details
-
removeCodecSupport
protected void removeCodecSupport(io.netty.channel.ChannelHandlerContext ctx) - Overrides:
removeCodecSupportin classSocksConnectHandler<io.netty.handler.codec.socksx.v4.Socks4CommandRequest>
-
successResponse
- Specified by:
successResponsein classRelayConnectHandler<io.netty.handler.codec.socksx.v4.Socks4CommandRequest>
-
failureResponse
- Specified by:
failureResponsein classRelayConnectHandler<io.netty.handler.codec.socksx.v4.Socks4CommandRequest>
-