|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsky.util.ProxyServerUtil
public class ProxyServerUtil
A utility class for managing access to a proxy server. If set, a proxy server is used to access URLs, usually when a firewall is in place. The proxy server, specified as a host name and port number, does the HTTP GET for us and returns the result.
ProxyServerDialog
Constructor Summary | |
---|---|
ProxyServerUtil()
|
Method Summary | |
---|---|
static void |
clearProxySettings()
Removes any current proxy settings |
static java.lang.String |
getHttpNonProxyHosts()
Return the space separated list of domains not requiring a proxy for HTTP. |
static java.lang.String |
getHttpProxyHost()
Return the HTTP proxy server host name. |
static int |
getHttpProxyPort()
Return the HTTP proxy server port. |
static java.lang.String |
getHttpsNonProxyHosts()
Return the space separated list of domains not requiring a proxy for HTTPS. |
static java.lang.String |
getHttpsProxyHost()
Return the HTTPS proxy server host name. |
static int |
getHttpsProxyPort()
Return the HTTPS proxy server port. |
static void |
init()
This method should be called once at startup, so that any previous proxy settings are restored. |
static void |
setProxy(java.lang.String httpProxyHost,
int httpProxyPort,
java.lang.String httpsProxyHost,
int httpsProxyPort,
java.lang.String httpNonProxyHosts,
java.lang.String httpsNonProxyHosts)
Set the proxy server information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyServerUtil()
Method Detail |
---|
public static void init()
public static void setProxy(java.lang.String httpProxyHost, int httpProxyPort, java.lang.String httpsProxyHost, int httpsProxyPort, java.lang.String httpNonProxyHosts, java.lang.String httpsNonProxyHosts)
httpProxyHost
- HTTP proxy server hosthttpProxyPort
- HTTP proxy server port numberhttpsProxyHost
- HTTPS proxy server hosthttpsProxyPort
- HTTPS proxy server port numberhttpNonProxyHosts
- a list of domains not requiring a proxy server (separated by spaces)public static void clearProxySettings()
public static java.lang.String getHttpProxyHost()
public static int getHttpProxyPort()
public static java.lang.String getHttpsProxyHost()
public static int getHttpsProxyPort()
public static java.lang.String getHttpNonProxyHosts()
public static java.lang.String getHttpsNonProxyHosts()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |