public class ProxyDetector extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProxyDetector.ProxySettings
Proxy settings holder.
|
Modifier and Type | Field and Description |
---|---|
static boolean |
debug |
static String |
HTTP_NON_PROXY_HOSTS |
static String |
HTTP_PROXY_HOST |
static String |
HTTP_PROXY_PORT |
static String |
HTTPS_PROXY_HOST |
static String |
HTTPS_PROXY_PORT |
static Pattern |
PROXY_ENV_VAR1 |
static Pattern |
PROXY_ENV_VAR2 |
static Pattern |
PROXY_WIN_REG |
Constructor and Description |
---|
ProxyDetector() |
Modifier and Type | Method and Description |
---|---|
static ProxyDetector.ProxySettings |
getEnvProxySettings()
Gets proxy settings from environment variables.
|
static ProxyDetector.ProxySettings |
getJavaProxySettings()
Gets proxy settings from system properties.
|
static ProxyDetector.ProxySettings |
getRegistryProxySettings()
Gets proxy settings from the Windows registry.
|
static void |
main(String[] args)
Main.
|
public static final String HTTP_PROXY_HOST
public static final String HTTP_PROXY_PORT
public static final String HTTPS_PROXY_HOST
public static final String HTTPS_PROXY_PORT
public static final String HTTP_NON_PROXY_HOSTS
public static final Pattern PROXY_ENV_VAR1
public static final Pattern PROXY_ENV_VAR2
public static final Pattern PROXY_WIN_REG
public static boolean debug
public static ProxyDetector.ProxySettings getJavaProxySettings()
public static ProxyDetector.ProxySettings getEnvProxySettings()
public static ProxyDetector.ProxySettings getRegistryProxySettings()
public static void main(String[] args)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.