public class PluginProxyUtil
extends java.lang.Object
DISCLAIMER: HttpClient developers DO NOT actively support this component. The component is provided as a reference material, which may be inappropriate for use without additional customization.
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.commons.logging.Log |
LOG
Log object for this class
|
private static org.apache.http.HttpHost |
NO_PROXY_HOST
This is used internally to indicate that no proxy detection succeeded
and no proxy setting is to be used - failover is unnecessary
|
private static java.lang.String |
PLUGIN_PROXY_CONFIG_PROP
The system property that is used to convey proxy information in some VM's
|
| Constructor and Description |
|---|
PluginProxyUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.http.HttpHost |
detectProxy(java.net.URL sampleURL)
Returns the Proxy Host information using settings from the java plugin.
|
private static org.apache.http.HttpHost |
detectProxySettingsJDK13(java.net.URL sampleURL)
Use Sun-specific internal plugin proxy classes for 1.3.X
Look around for the 1.3.X plugin proxy detection class.
|
private static org.apache.http.HttpHost |
detectProxySettingsJDK14_JDK15_JDK16(java.net.URL sampleURL)
Returns the proxy information for the specified sampleURL using JRE 1.4+
specific plugin classes.
|
private static org.apache.http.HttpHost |
getPluginProxyConfigSettings()
Returns the proxy host information found by inspecting the system
property "javaplugin.proxy.config.list".
|
private static final org.apache.commons.logging.Log LOG
private static final org.apache.http.HttpHost NO_PROXY_HOST
private static final java.lang.String PLUGIN_PROXY_CONFIG_PROP
public static org.apache.http.HttpHost detectProxy(java.net.URL sampleURL)
throws ProxyDetectionException
sampleURL - the url target for which proxy host information is
requiredProxyDetectionException - if detection failedprivate static org.apache.http.HttpHost detectProxySettingsJDK13(java.net.URL sampleURL)
throws ProxyDetectionException
sampleURL - the URL to check proxy settings forProxyDetectionException - if detection failedprivate static org.apache.http.HttpHost detectProxySettingsJDK14_JDK15_JDK16(java.net.URL sampleURL)
sampleURL - the URL to check proxy settings forprivate static org.apache.http.HttpHost getPluginProxyConfigSettings()
throws ProxyDetectionException
ProxyDetectionException - if an exception is encountered while
parsing the value of
PLUGIN_PROXY_CONFIG_PROP