java.lang.Object
org.eclipse.jetty.client.ProxyConfiguration
The configuration of the forward proxy to use with
HttpClient.
Applications add subclasses of ProxyConfiguration.Proxy to this configuration via:
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.booleanRemoves a proxy.
-
Constructor Details
-
ProxyConfiguration
public ProxyConfiguration()
-
-
Method Details
-
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
-