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 SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringthe ftp hosts not to be proxied propertystatic final Stringthe ftp proxyhost propertystatic final Stringthe ftp proxyport propertystatic final Stringthe ftp proxyport propertystatic final Stringthe http proxyhost propertystatic final Stringthe http proxy password propertystatic final Stringthe http proxyport propertystatic final Stringthe http proxy username propertystatic final Stringthe http hosts not to be proxied propertystatic final Stringthe https proxyhost propertystatic final Stringthe https proxyport propertystatic final Stringthe socks proxy host propertystatic final Stringthe socks proxy password propertystatic final Stringthe socks proxy port propertystatic final Stringthe socks proxy username propertystatic final StringJava1.5 property that enables use of system proxies.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidturn proxies on; if the proxy key is already set to some value: leave alone.static StringGet the current system property settings
- 
Field Details- 
USE_SYSTEM_PROXIESJava1.5 property that enables use of system proxies.- See Also:
 
- 
HTTP_PROXY_HOSTthe http proxyhost property- See Also:
 
- 
HTTP_PROXY_PORTthe http proxyport property- See Also:
 
- 
HTTPS_PROXY_HOSTthe https proxyhost property- See Also:
 
- 
HTTPS_PROXY_PORTthe https proxyport property- See Also:
 
- 
FTP_PROXY_HOSTthe ftp proxyhost property- See Also:
 
- 
FTP_PROXY_PORTthe ftp proxyport property- See Also:
 
- 
HTTP_NON_PROXY_HOSTSthe ftp proxyport property- See Also:
 
- 
HTTPS_NON_PROXY_HOSTSthe http hosts not to be proxied property- See Also:
 
- 
FTP_NON_PROXY_HOSTSthe ftp hosts not to be proxied property- See Also:
 
- 
HTTP_PROXY_USERNAMEthe http proxy username property- See Also:
 
- 
HTTP_PROXY_PASSWORDthe http proxy password property- See Also:
 
- 
SOCKS_PROXY_HOSTthe socks proxy host property- See Also:
 
- 
SOCKS_PROXY_PORTthe socks proxy port property- See Also:
 
- 
SOCKS_PROXY_USERNAMEthe socks proxy username property- See Also:
 
- 
SOCKS_PROXY_PASSWORDthe socks proxy password property- See Also:
 
 
- 
- 
Constructor Details- 
ProxySetupcreate a proxy setup class bound to this project- Parameters:
- owner- the project that owns this setup.
 
 
- 
- 
Method Details- 
getSystemProxySettingGet the current system property settings- Returns:
- current value; null for none or no access
 
- 
enableProxiespublic 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_PROXIESis set, use that instead. Else set to "true".
 
-