|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.app.net.ProxySettings
public class ProxySettings
Utility class for handling proxy connection settings.
| Field Summary | |
|---|---|
static String |
PROXY_SETTINGS_FILENAME
|
| Fields inherited from interface info.aduna.app.config.Configuration |
|---|
CONFIG_DIR |
| Constructor Summary | |
|---|---|
ProxySettings(File applicationDataDir)
|
|
| Method Summary | |
|---|---|
void |
destroy()
Clean up configuration resources. |
String |
getFtpProxyHost()
|
String |
getFtpProxyPort()
|
String |
getHttpProxyHost()
|
String |
getHttpProxyPort()
|
String |
getHttpsProxyHost()
|
String |
getHttpsProxyPort()
|
String |
getNonProxyHostsStarting()
Get the semicolon-separated list of hostnames starting with given strings, that do not use the proxy settings. |
boolean |
getProxiesEnabled()
|
String |
getSocksProxyHost()
|
String |
getSocksProxyPort()
|
void |
init()
Initialize the configuration settings. |
void |
load()
(Re-)loads the proxy system properties. |
void |
save()
Saves the currently known settings. |
void |
setFtpProxyHost(String ftpProxyHost)
|
void |
setFtpProxyPort(String ftpProxyPort)
|
void |
setHttpProxyHost(String httpProxyHost)
|
void |
setHttpProxyPort(String httpProxyPort)
|
void |
setHttpsProxyHost(String httpsProxyHost)
|
void |
setHttpsProxyPort(String httpsProxyPort)
|
void |
setNonProxyHostsStarting(String nonProxyHostsStarting)
Set the semicolon separated list of hostnames starting with given strings, that do not use the proxy settings. |
void |
setProperty(String key,
String val)
|
void |
setProxiesEnabled(boolean proxiesEnabled)
|
void |
setSocksProxyHost(String socksProxyHost)
|
void |
setSocksProxyPort(String socksProxyPort)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROXY_SETTINGS_FILENAME
| Constructor Detail |
|---|
public ProxySettings(File applicationDataDir)
throws IOException
IOException| Method Detail |
|---|
public void setProperty(String key,
String val)
public boolean getProxiesEnabled()
public void setProxiesEnabled(boolean proxiesEnabled)
public String getHttpProxyHost()
public void setHttpProxyHost(String httpProxyHost)
public String getHttpProxyPort()
public void setHttpProxyPort(String httpProxyPort)
public String getHttpsProxyHost()
public void setHttpsProxyHost(String httpsProxyHost)
public String getHttpsProxyPort()
public void setHttpsProxyPort(String httpsProxyPort)
public String getFtpProxyHost()
public void setFtpProxyHost(String ftpProxyHost)
public String getFtpProxyPort()
public void setFtpProxyPort(String ftpProxyPort)
public String getSocksProxyHost()
public void setSocksProxyHost(String socksProxyHost)
public String getSocksProxyPort()
public void setSocksProxyPort(String socksProxyPort)
public String getNonProxyHostsStarting()
public void setNonProxyHostsStarting(String nonProxyHostsStarting)
public void load()
throws IOException
load in interface ConfigurationIOException - if the configuration settings could not be loaded due to an I/O
problem.
public void save()
throws IOException
save in interface ConfigurationIOException - if the configuration settings could not be saved due to an I/O
problem.
public void destroy()
throws IOException
Configuration
destroy in interface ConfigurationIOException - if one or more resources could not be cleaned up. Implementations
should attempt to clean up as many resources as possible before
returning or throwing an exception.
public void init()
throws IOException
Configuration
init in interface ConfigurationIOException - if the configuration settings could not be initialized because of
an I/O problem.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||