Class Socks4Proxy
java.lang.Object
org.eclipse.jetty.client.ProxyConfiguration.Proxy
org.eclipse.jetty.client.Socks4Proxy
Client-side proxy configuration for SOCKS4, a de-facto standard.
Consider using SOCK5 instead, a protocol that has been standardized by IETF.
- See Also:
 
- 
Nested Class Summary
Nested Classes - 
Constructor Summary
ConstructorsConstructorDescriptionSocks4Proxy(String host, int port) Creates a new instance with the given SOCKS4 proxy host and port.Socks4Proxy(Origin.Address address, boolean secure) Creates a new instance with the given SOCKS4 proxy address. - 
Method Summary
Modifier and TypeMethodDescriptionnewClientConnectionFactory(ClientConnectionFactory connectionFactory) Methods inherited from class ProxyConfiguration.Proxy
getAddress, getExcludedAddresses, getIncludedAddresses, getOrigin, getProtocol, getSslContextFactory, getURI, isSecure, matches, toString 
- 
Constructor Details
- 
Socks4Proxy
Creates a new instance with the given SOCKS4 proxy host and port.
- Parameters:
 host- the SOCKS4 proxy host nameport- the SOCKS4 proxy port
 - 
Socks4Proxy
Creates a new instance with the given SOCKS4 proxy address.
When
secure=truethe communication between the client and the proxy will be encrypted (using this proxyProxyConfiguration.Proxy.getSslContextFactory()which typically defaults to that ofHttpClient.- Parameters:
 address- the SOCKS4 proxy address (host and port)secure- whether the communication between the client and the SOCKS4 proxy should be secure
 
 - 
 - 
Method Details
- 
newClientConnectionFactory
public ClientConnectionFactory newClientConnectionFactory(ClientConnectionFactory connectionFactory) - Specified by:
 newClientConnectionFactoryin classProxyConfiguration.Proxy- Parameters:
 connectionFactory- the nestedClientConnectionFactory- Returns:
 - a new 
ClientConnectionFactoryfor this Proxy 
 
 -