public class ProxyServerUtil extends Object
ProxyServerDialog
Constructor and Description |
---|
ProxyServerUtil() |
Modifier and Type | Method and Description |
---|---|
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.
|
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()
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.