public static class Socks4Proxy.Socks4ProxyClientConnectionFactory extends java.lang.Object implements ClientConnectionFactory
ClientConnectionFactory.Decorator
Modifier and Type | Field and Description |
---|---|
private ClientConnectionFactory |
connectionFactory |
CONNECTOR_CONTEXT_KEY
Constructor and Description |
---|
Socks4ProxyClientConnectionFactory(ClientConnectionFactory connectionFactory) |
Modifier and Type | Method and Description |
---|---|
Connection |
newConnection(EndPoint endPoint,
java.util.Map<java.lang.String,java.lang.Object> context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
customize
private final ClientConnectionFactory connectionFactory
public Socks4ProxyClientConnectionFactory(ClientConnectionFactory connectionFactory)
public Connection newConnection(EndPoint endPoint, java.util.Map<java.lang.String,java.lang.Object> context)
newConnection
in interface ClientConnectionFactory
endPoint
- the EndPoint
to link the newly created connection tocontext
- the context data to create the connectionConnection