public class Socks4ProxyHandlerFactory extends Object implements ProxyHandlerFactory
ProxyHandlerFactory
implementation that creates Socks4ProxyHandler
instances.Constructor and Description |
---|
Socks4ProxyHandlerFactory(SocketAddress proxyAddress)
Creates a new proxy handler factory that will create SOCKS4 proxy handlers that use the proxy at the given
address and that will not perform authentication.
|
Socks4ProxyHandlerFactory(SocketAddress proxyAddress,
String username)
Creates a new proxy handler factory that will create SOCKS4 proxy handlers that use the proxy at the given
address and that will authenticate with the given username and password.
|
Modifier and Type | Method and Description |
---|---|
ProxyHandler |
createProxyHandler()
Constructs a new proxy handler.
|
public Socks4ProxyHandlerFactory(SocketAddress proxyAddress)
proxyAddress
- the address of the SOCKS4 proxy serverpublic Socks4ProxyHandlerFactory(SocketAddress proxyAddress, String username)
proxyAddress
- the address of the SOCKS4 proxy serverusername
- the username to use when connecting to the given proxy serverpublic ProxyHandler createProxyHandler()
ProxyHandlerFactory
createProxyHandler
in interface ProxyHandlerFactory
null
Copyright © 2013–2016 RelayRides. All rights reserved.