Package org.mockserver.proxy.socks
Class Socks5ConnectHandler
- 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.v5.Socks5CommandRequest>
-
- org.mockserver.proxy.socks.Socks5ConnectHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
@Sharable public final class Socks5ConnectHandler extends SocksConnectHandler<io.netty.handler.codec.socksx.v5.Socks5CommandRequest>
-
-
Field Summary
-
Fields inherited from class org.mockserver.proxy.relay.RelayConnectHandler
HTTP_CONNECT_SOCKET
-
-
Constructor Summary
Constructors Constructor Description Socks5ConnectHandler(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
-
Socks5ConnectHandler
public Socks5ConnectHandler(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.v5.Socks5CommandRequest>
-
successResponse
protected Object successResponse(Object request)
- Specified by:
successResponse
in classRelayConnectHandler<io.netty.handler.codec.socksx.v5.Socks5CommandRequest>
-
failureResponse
protected Object failureResponse(Object request)
- Specified by:
failureResponse
in classRelayConnectHandler<io.netty.handler.codec.socksx.v5.Socks5CommandRequest>
-
-