Package org.mockserver.proxy.socks
Class Socks4ConnectHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<T>
-
- org.mockserver.proxy.relay.RelayConnectHandler<T>
-
- org.mockserver.proxy.socks.SocksConnectHandler<io.netty.handler.codec.socksx.v4.Socks4CommandRequest>
-
- org.mockserver.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>
-
-
Field Summary
-
Fields inherited from class org.mockserver.proxy.relay.RelayConnectHandler
HTTP_CONNECT_SOCKET
-
-
Constructor Summary
Constructors Constructor Description Socks4ConnectHandler(LifeCycle server, MockServerLogger mockServerLogger, String host, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
failureResponse(Object request)
protected void
removeCodecSupport(io.netty.channel.ChannelHandlerContext ctx)
protected Object
successResponse(Object request)
-
Methods inherited from class org.mockserver.proxy.relay.RelayConnectHandler
channelRead0, exceptionCaught, removeHandler, removeHandler
-
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Constructor Detail
-
Socks4ConnectHandler
public Socks4ConnectHandler(LifeCycle server, MockServerLogger mockServerLogger, String host, int port)
-
-
Method Detail
-
removeCodecSupport
protected void removeCodecSupport(io.netty.channel.ChannelHandlerContext ctx)
- Overrides:
removeCodecSupport
in classSocksConnectHandler<io.netty.handler.codec.socksx.v4.Socks4CommandRequest>
-
successResponse
protected Object successResponse(Object request)
- Specified by:
successResponse
in classRelayConnectHandler<io.netty.handler.codec.socksx.v4.Socks4CommandRequest>
-
failureResponse
protected Object failureResponse(Object request)
- Specified by:
failureResponse
in classRelayConnectHandler<io.netty.handler.codec.socksx.v4.Socks4CommandRequest>
-
-