public class ProxyUtils extends Object
Constructor and Description |
---|
ProxyUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
excludes(String[] excludes,
String proxyHost,
int proxyPort) |
static ProxySelector |
filterHttpHttpsProxy(ProxySelector proxySelector) |
static org.apache.http.auth.Credentials |
getProxyCredentials(String proxyUsername,
String proxyPassword) |
static boolean |
isAutoProxy() |
static boolean |
isProxyEnabled() |
static void |
setAutoProxy(boolean autoProxy) |
static void |
setForceDirectConnection(org.apache.http.params.HttpParams params) |
static void |
setGlobalProxy(Settings settings) |
static void |
setProxyEnabled(boolean proxyEnabled) |
public static org.apache.http.auth.Credentials getProxyCredentials(String proxyUsername, String proxyPassword)
public static boolean isProxyEnabled()
public static void setProxyEnabled(boolean proxyEnabled)
public static boolean isAutoProxy()
public static void setAutoProxy(boolean autoProxy)
public static void setGlobalProxy(Settings settings)
public static ProxySelector filterHttpHttpsProxy(ProxySelector proxySelector)
public static void setForceDirectConnection(org.apache.http.params.HttpParams params)
Copyright © 2019. All Rights Reserved.