Package org.apache.hc.core5.testing
Class SocksProxy
java.lang.Object
org.apache.hc.core5.testing.SocksProxy
Cheap and nasty SOCKS protocol version 5 proxy, recommended for use in unit tests only so we can test our SOCKS client code.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcleanupSocksProxyHandler(org.apache.hc.core5.testing.SocksProxy.SocksProxyHandler handler) voidvoidstart()protected voidstartSocksProxyHandler(Socket socket)
-
Constructor Details
-
SocksProxy
public SocksProxy() -
SocksProxy
public SocksProxy(int port)
-
-
Method Details
-
start
- Throws:
IOException
-
shutdown
- Throws:
InterruptedException
-
startSocksProxyHandler
-
cleanupSocksProxyHandler
protected void cleanupSocksProxyHandler(org.apache.hc.core5.testing.SocksProxy.SocksProxyHandler handler) -
getProxyAddress
-