|
|||||||||
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 String |
getHost()
Return the proxy server host name. |
static String |
getNonProxyHosts()
Return the space separated list of domains not requiring a proxy. |
static int |
getPort()
Return the 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(String host,
int port,
String nonProxyHosts)
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(String host, int port, String nonProxyHosts)
host
- proxy server hostport
- proxy server port numbernonProxyHosts
- a list of domains not requiring a proxy server (separated by spaces)public static String getHost()
public static int getPort()
public static String getNonProxyHosts()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |