Package org.eclipse.jetty.client
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProxy
(ProxyConfiguration.Proxy proxy) Adds a proxy.Returns an unmodifiable list of proxies added to this configuration.boolean
Removes 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
- ifproxy
is null
-
removeProxy
Removes a proxy.- Parameters:
proxy
- a proxy- Returns:
- true if a match is found
-
match
-