public class ProxyUtil extends Object
| Modifier and Type | Field | Description |
|---|---|---|
static int |
DEFAULT_PROXY_PORT |
| Constructor | Description |
|---|---|
ProxyUtil() |
| Modifier and Type | Method | Description |
|---|---|---|
static PacProxySelector |
buildPacSelectorForUrl(String url) |
Build a PAC proxy selector for the given URL.
|
static String |
cleanIPv6(String hostOrIP) |
This method can be used to cleanup an IPv6 address.
|
static List<Proxy> |
noProxyList() |
Gets an unmodifiable proxy list that will have as it's only entry an
DIRECT proxy.
|
static FixedProxySelector |
parseProxySettings(String proxyVar) |
Parse host and port out of a proxy variable.
|
public static final int DEFAULT_PROXY_PORT
public static FixedProxySelector parseProxySettings(String proxyVar)
proxyVar - the proxy string. example: http://192.168.10.9:8080/public static List<Proxy> noProxyList()
public static PacProxySelector buildPacSelectorForUrl(String url)
url - to fetch the PAC script from.public static String cleanIPv6(String hostOrIP)
hostOrIP - to cleanupCopyright © 2018. All rights reserved.