org.mockserver.proxy.socks
Class SocksConnectHandler

java.lang.Object
  extended by io.netty.channel.ChannelHandlerAdapter
      extended by io.netty.channel.ChannelInboundHandlerAdapter
          extended by io.netty.channel.SimpleChannelInboundHandler<T>
              extended by org.mockserver.proxy.relay.RelayConnectHandler<io.netty.handler.codec.socks.SocksCmdRequest>
                  extended by org.mockserver.proxy.socks.SocksConnectHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

@ChannelHandler.Sharable
public final class SocksConnectHandler
extends RelayConnectHandler<io.netty.handler.codec.socks.SocksCmdRequest>


Nested Class Summary
 
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
 
Field Summary
 
Fields inherited from class org.mockserver.proxy.relay.RelayConnectHandler
logger
 
Constructor Summary
SocksConnectHandler(String host, int port)
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
 

Constructor Detail

SocksConnectHandler

public SocksConnectHandler(String host,
                           int port)
Method Detail

removeCodecSupport

protected void removeCodecSupport(io.netty.channel.ChannelHandlerContext ctx)
Specified by:
removeCodecSupport in class RelayConnectHandler<io.netty.handler.codec.socks.SocksCmdRequest>

successResponse

protected Object successResponse(Object request)
Specified by:
successResponse in class RelayConnectHandler<io.netty.handler.codec.socks.SocksCmdRequest>

failureResponse

protected Object failureResponse(Object request)
Specified by:
failureResponse in class RelayConnectHandler<io.netty.handler.codec.socks.SocksCmdRequest>


Copyright © 2017. All rights reserved.