Class SocksProxy

java.lang.Object
org.apache.hc.core5.testing.SocksProxy

@Deprecated public class SocksProxy extends Object
Deprecated.
Do not use.
Cheap and nasty SOCKS protocol version 5 proxy, recommended for use in unit tests only so we can test our SOCKS client code.
  • Constructor Details

    • SocksProxy

      public SocksProxy()
      Deprecated.
    • SocksProxy

      public SocksProxy(int port)
      Deprecated.
  • Method Details

    • start

      public void start() throws IOException
      Deprecated.
      Throws:
      IOException
    • shutdown

      public void shutdown(org.apache.hc.core5.util.TimeValue timeout) throws InterruptedException
      Deprecated.
      Throws:
      InterruptedException
    • startSocksProxyHandler

      protected void startSocksProxyHandler(Socket socket)
      Deprecated.
    • cleanupSocksProxyHandler

      protected void cleanupSocksProxyHandler(org.apache.hc.core5.testing.SocksProxy.SocksProxyHandler handler)
      Deprecated.
    • getProxyAddress

      public SocketAddress getProxyAddress()
      Deprecated.