Package org.apache.tools.ant.util
Class ProxySetup
java.lang.Object
org.apache.tools.ant.util.ProxySetup
Code to do proxy setup. This is just factored out of the main system just to
keep everything else less convoluted.
- Since:
- Ant1.7
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
the ftp hosts not to be proxied propertystatic final String
the ftp proxyhost propertystatic final String
the ftp proxyport propertystatic final String
the ftp proxyport propertystatic final String
the http proxyhost propertystatic final String
the http proxy password propertystatic final String
the http proxyport propertystatic final String
the http proxy username propertystatic final String
the http hosts not to be proxied propertystatic final String
the https proxyhost propertystatic final String
the https proxyport propertystatic final String
the socks proxy host propertystatic final String
the socks proxy password propertystatic final String
the socks proxy port propertystatic final String
the socks proxy username propertystatic final String
Java1.5 property that enables use of system proxies. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
turn proxies on; if the proxy key is already set to some value: leave alone.static String
Get the current system property settings
-
Field Details
-
USE_SYSTEM_PROXIES
Java1.5 property that enables use of system proxies.- See Also:
-
HTTP_PROXY_HOST
-
HTTP_PROXY_PORT
-
HTTPS_PROXY_HOST
-
HTTPS_PROXY_PORT
-
FTP_PROXY_HOST
-
FTP_PROXY_PORT
-
HTTP_NON_PROXY_HOSTS
-
HTTPS_NON_PROXY_HOSTS
the http hosts not to be proxied property- See Also:
-
FTP_NON_PROXY_HOSTS
-
HTTP_PROXY_USERNAME
-
HTTP_PROXY_PASSWORD
-
SOCKS_PROXY_HOST
-
SOCKS_PROXY_PORT
-
SOCKS_PROXY_USERNAME
-
SOCKS_PROXY_PASSWORD
-
-
Constructor Details
-
ProxySetup
create a proxy setup class bound to this project- Parameters:
owner
- the project that owns this setup.
-
-
Method Details
-
getSystemProxySetting
Get the current system property settings- Returns:
- current value; null for none or no access
-
enableProxies
public void enableProxies()turn proxies on; if the proxy key is already set to some value: leave alone. if an ant property of the valueUSE_SYSTEM_PROXIES
is set, use that instead. Else set to "true".
-