Package org.eclipse.rdf4j.common.app.net
Class ProxySettings
java.lang.Object
org.eclipse.rdf4j.common.app.net.ProxySettings
-
Field Summary
Fields inherited from interface org.eclipse.rdf4j.common.app.config.Configuration
DEFAULT_RESOURCES_LOCATION, DIR, RESOURCES_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Clean up configuration resources.Get HTTP proxy port as stringGet HTTPS proxy hostGet the semicolon-separated list of hostnames starting with given strings, that do not use the proxy settings.boolean
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) Set HTTP proxy portvoid
setHttpsProxyHost
(String httpsProxyHost) Get HTTPS proxy hostvoid
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)
-
Field Details
-
PROXY_SETTINGS_FILENAME
- See Also:
-
-
Constructor Details
-
ProxySettings
- Throws:
IOException
-
-
Method Details
-
setProperty
-
getProxiesEnabled
public boolean getProxiesEnabled() -
setProxiesEnabled
public void setProxiesEnabled(boolean proxiesEnabled) - Parameters:
proxiesEnabled
-
-
getHttpProxyHost
- Returns:
- proxy
-
setHttpProxyHost
- Parameters:
httpProxyHost
-
-
getHttpProxyPort
-
setHttpProxyPort
Set HTTP proxy port- Parameters:
httpProxyPort
- proxy port
-
getHttpsProxyHost
-
setHttpsProxyHost
Get HTTPS proxy host- Parameters:
httpsProxyHost
-
-
getHttpsProxyPort
-
setHttpsProxyPort
-
getFtpProxyHost
-
setFtpProxyHost
-
getFtpProxyPort
-
setFtpProxyPort
-
getSocksProxyHost
-
setSocksProxyHost
-
getSocksProxyPort
-
setSocksProxyPort
-
getNonProxyHostsStarting
Get the semicolon-separated list of hostnames starting with given strings, that do not use the proxy settings. -
setNonProxyHostsStarting
Set the semicolon separated list of hostnames starting with given strings, that do not use the proxy settings. -
load
(Re-)loads the proxy system properties.- Specified by:
load
in interfaceConfiguration
- Throws:
IOException
- if the configuration settings could not be loaded due to an I/O problem.
-
save
Saves the currently known settings.- Specified by:
save
in interfaceConfiguration
- Throws:
IOException
- if the configuration settings could not be saved due to an I/O problem.
-
destroy
Description copied from interface:Configuration
Clean up configuration resources.- Specified by:
destroy
in interfaceConfiguration
- Throws:
IOException
- 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.
-
init
Description copied from interface:Configuration
Initialize the configuration settings.- Specified by:
init
in interfaceConfiguration
- Throws:
IOException
- if the configuration settings could not be initialized because of an I/O problem.
-