Package org.eclipse.jetty.client
Class ProxyConfiguration
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 TypeMethodDescriptionvoid
addProxy
(ProxyConfiguration.Proxy proxy) Adds a proxy.Deprecated, for removal: This API element is subject to removal in a future version.boolean
Removes a proxy.
-
Constructor Details
-
ProxyConfiguration
public ProxyConfiguration()
-
-
Method Details
-
getProxies
Deprecated, for removal: This API element is subject to removal in a future version.useaddProxy(Proxy)
andremoveProxy(Proxy)
instead- Returns:
- the forward proxies to use
-
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
-
addProxy(Proxy)
andremoveProxy(Proxy)
instead