Class ProxyConfiguration
java.lang.Object
org.eclipse.jetty.client.ProxyConfiguration
The configuration of the forward proxies to use with
HttpClient.
Applications add subclasses of ProxyConfiguration.Proxy to this
configuration via, for example:
ProxyConfiguration proxyConfig = httpClient.getProxyConfiguration();
proxyConfig.addProxy(new HttpProxy(proxyHost, 8080));
- See Also:
 
- 
Nested Class Summary
Nested Classes - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddProxy(ProxyConfiguration.Proxy proxy) Adds a proxy.Returns an unmodifiable list of proxies added to this configuration.booleanRemoves a proxy. 
- 
Constructor Details
- 
ProxyConfiguration
public ProxyConfiguration() 
 - 
 - 
Method Details
- 
getProxies
Returns an unmodifiable list of proxies added to this configuration.
- Returns:
 - the forward proxies
 - See Also:
 
 - 
addProxy
Adds a proxy.- Parameters:
 proxy- a proxy- Throws:
 NullPointerException- ifproxyis null
 - 
removeProxy
Removes a proxy.- Parameters:
 proxy- a proxy- Returns:
 - true if a match is found
 
 - 
match
 
 -