public class ProxySetupHelper extends Object
Constructor and Description |
---|
ProxySetupHelper() |
Modifier and Type | Method and Description |
---|---|
static Proxy |
getProxy(String url) |
static Proxy |
getSocksProxy(URL url) |
static org.eclipse.core.net.proxy.IProxyData |
selectProxyFromProxies(String protocol,
org.eclipse.core.net.proxy.IProxyData[] proxies)
Select a single proxy from a set of proxies available for the given host.
|
public static org.eclipse.core.net.proxy.IProxyData selectProxyFromProxies(String protocol, org.eclipse.core.net.proxy.IProxyData[] proxies)
protocol
- the target protocol (e.g. http, https, scp, etc). Will not be null
.proxies
- the proxies to select from. May be null
or array of length 0.Copyright © 2004–2020 Eclipse Foundation. All rights reserved.