Class Socks4Proxy.Socks4ProxyClientConnectionFactory

    • Constructor Detail

      • Socks4ProxyClientConnectionFactory

        public Socks4ProxyClientConnectionFactory​(ClientConnectionFactory connectionFactory)
    • Method Detail

      • newConnection

        public Connection newConnection​(EndPoint endPoint,
                                        java.util.Map<java.lang.String,​java.lang.Object> context)
                                 throws java.io.IOException
        Specified by:
        newConnection in interface ClientConnectionFactory
        Parameters:
        endPoint - the EndPoint to link the newly created connection to
        context - the context data to create the connection
        Returns:
        a new Connection
        Throws:
        java.io.IOException - if the connection cannot be created