public class ProxySetup extends Object
To enable any stored proxy setup just do:
ProxySetup.getInstance().restore();Sometime during application startup. Note that this will supercede any system properties already set (but only if any Preferences have been defined).
Modifier and Type | Method and Description |
---|---|
static ProxySetup |
getInstance()
Get a reference to the only instance of this class.
|
String |
getNonProxyHosts()
Get the hosts that should not be proxied.
|
String |
getProxyHost()
Get the proxy host.
|
String |
getProxyPort()
Get the proxy port.
|
boolean |
isProxySet()
Get if proxy use is enabled.
|
void |
restore()
Restore from backing store, updating the system properties.
|
void |
setNonProxyHosts(String nohosts)
Set the hosts that shouldn't use the proxy.
|
void |
setProxyHost(String host)
Set the proxy host.
|
void |
setProxyPort(String port)
Set the proxy port.
|
void |
setProxySet(boolean set)
Set if proxy use is enabled.
|
void |
store()
Save state of system properties to backing store.
|
public static ProxySetup getInstance()
public boolean isProxySet()
public void setProxySet(boolean set)
public String getProxyHost()
public void setProxyHost(String host)
public String getProxyPort()
public void setProxyPort(String port)
public String getNonProxyHosts()
public void setNonProxyHosts(String nohosts)
public void restore()
public void store()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.