|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gargoylesoftware.htmlunit.ProxyConfig
public class ProxyConfig
Class which centralizes proxy configuration, in an effort to reduce clutter in the WebClient
class. One instance of this class exists for each WebClient instance.
WebClient.getProxyConfig(),
Serialized Form| Constructor Summary | |
|---|---|
ProxyConfig()
Creates a new instance. |
|
ProxyConfig(java.lang.String proxyHost,
int proxyPort)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
addHostsToProxyBypass(java.lang.String pattern)
Any hosts matched by the specified regular expression pattern will bypass the configured proxy. |
protected java.lang.String |
getProxyAutoConfigContent()
Returns the proxy auto-config content. |
java.lang.String |
getProxyAutoConfigUrl()
Returns the proxy auto-config URL. |
java.lang.String |
getProxyHost()
Returns the proxy host used to perform HTTP requests. |
int |
getProxyPort()
Returns the proxy port used to perform HTTP requests. |
void |
removeHostsFromProxyBypass(java.lang.String pattern)
Any hosts matched by the specified regular expression pattern will no longer bypass the configured proxy. |
protected void |
setProxyAutoConfigContent(java.lang.String proxyAutoConfigContent)
Sets the proxy auto-config content. |
void |
setProxyAutoConfigUrl(java.lang.String proxyAutoConfigUrl)
Sets the proxy auto-config URL. |
void |
setProxyHost(java.lang.String proxyHost)
Sets the proxy host used to perform HTTP requests. |
void |
setProxyPort(int proxyPort)
Sets the proxy port used to perform HTTP requests. |
protected boolean |
shouldBypassProxy(java.lang.String hostname)
Returns true if the host with the specified hostname should be accessed bypassing the configured proxy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyConfig()
public ProxyConfig(java.lang.String proxyHost,
int proxyPort)
proxyHost - the proxy hostproxyPort - the proxy port| Method Detail |
|---|
public java.lang.String getProxyHost()
public void setProxyHost(java.lang.String proxyHost)
proxyHost - the proxy host used to perform HTTP requestspublic int getProxyPort()
public void setProxyPort(int proxyPort)
proxyPort - the proxy port used to perform HTTP requestspublic void addHostsToProxyBypass(java.lang.String pattern)
pattern - a regular expression pattern that matches the hostnames of the hosts which should
bypass the configured proxy.Patternpublic void removeHostsFromProxyBypass(java.lang.String pattern)
pattern - the previously added regular expression patternPatternprotected boolean shouldBypassProxy(java.lang.String hostname)
hostname - the name of the host to check
public java.lang.String getProxyAutoConfigUrl()
public void setProxyAutoConfigUrl(java.lang.String proxyAutoConfigUrl)
proxyAutoConfigUrl - the proxy auto-config URLprotected java.lang.String getProxyAutoConfigContent()
protected void setProxyAutoConfigContent(java.lang.String proxyAutoConfigContent)
proxyAutoConfigContent - the proxy auto-config content
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||