Package org.apache.tools.ant.util
Class ProxySetup
java.lang.Object
org.apache.tools.ant.util.ProxySetup
public class ProxySetup
extends java.lang.Object
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
Fields Modifier and Type Field Description static java.lang.String
FTP_NON_PROXY_HOSTS
the ftp hosts not to be proxied propertystatic java.lang.String
FTP_PROXY_HOST
the ftp proxyhost propertystatic java.lang.String
FTP_PROXY_PORT
the ftp proxyport propertystatic java.lang.String
HTTP_NON_PROXY_HOSTS
the ftp proxyport propertystatic java.lang.String
HTTP_PROXY_HOST
the http proxyhost propertystatic java.lang.String
HTTP_PROXY_PASSWORD
the http proxy password propertystatic java.lang.String
HTTP_PROXY_PORT
the http proxyport propertystatic java.lang.String
HTTP_PROXY_USERNAME
the http proxy username propertystatic java.lang.String
HTTPS_NON_PROXY_HOSTS
the http hosts not to be proxied propertystatic java.lang.String
HTTPS_PROXY_HOST
the https proxyhost propertystatic java.lang.String
HTTPS_PROXY_PORT
the https proxyport propertystatic java.lang.String
SOCKS_PROXY_HOST
the socks proxy host propertystatic java.lang.String
SOCKS_PROXY_PASSWORD
the socks proxy password propertystatic java.lang.String
SOCKS_PROXY_PORT
the socks proxy port propertystatic java.lang.String
SOCKS_PROXY_USERNAME
the socks proxy username propertystatic java.lang.String
USE_SYSTEM_PROXIES
Java1.5 property that enables use of system proxies. -
Constructor Summary
Constructors Constructor Description ProxySetup(Project owner)
create a proxy setup class bound to this project -
Method Summary
Modifier and Type Method Description void
enableProxies()
turn proxies on; if the proxy key is already set to some value: leave alone.static java.lang.String
getSystemProxySetting()
Get the current system property settings
-
Field Details
-
USE_SYSTEM_PROXIES
public static final java.lang.String USE_SYSTEM_PROXIESJava1.5 property that enables use of system proxies.- See Also:
- Constant Field Values
-
HTTP_PROXY_HOST
public static final java.lang.String HTTP_PROXY_HOSTthe http proxyhost property- See Also:
- Constant Field Values
-
HTTP_PROXY_PORT
public static final java.lang.String HTTP_PROXY_PORTthe http proxyport property- See Also:
- Constant Field Values
-
HTTPS_PROXY_HOST
public static final java.lang.String HTTPS_PROXY_HOSTthe https proxyhost property- See Also:
- Constant Field Values
-
HTTPS_PROXY_PORT
public static final java.lang.String HTTPS_PROXY_PORTthe https proxyport property- See Also:
- Constant Field Values
-
FTP_PROXY_HOST
public static final java.lang.String FTP_PROXY_HOSTthe ftp proxyhost property- See Also:
- Constant Field Values
-
FTP_PROXY_PORT
public static final java.lang.String FTP_PROXY_PORTthe ftp proxyport property- See Also:
- Constant Field Values
-
HTTP_NON_PROXY_HOSTS
public static final java.lang.String HTTP_NON_PROXY_HOSTSthe ftp proxyport property- See Also:
- Constant Field Values
-
HTTPS_NON_PROXY_HOSTS
public static final java.lang.String HTTPS_NON_PROXY_HOSTSthe http hosts not to be proxied property- See Also:
- Constant Field Values
-
FTP_NON_PROXY_HOSTS
public static final java.lang.String FTP_NON_PROXY_HOSTSthe ftp hosts not to be proxied property- See Also:
- Constant Field Values
-
HTTP_PROXY_USERNAME
public static final java.lang.String HTTP_PROXY_USERNAMEthe http proxy username property- See Also:
- Constant Field Values
-
HTTP_PROXY_PASSWORD
public static final java.lang.String HTTP_PROXY_PASSWORDthe http proxy password property- See Also:
- Constant Field Values
-
SOCKS_PROXY_HOST
public static final java.lang.String SOCKS_PROXY_HOSTthe socks proxy host property- See Also:
- Constant Field Values
-
SOCKS_PROXY_PORT
public static final java.lang.String SOCKS_PROXY_PORTthe socks proxy port property- See Also:
- Constant Field Values
-
SOCKS_PROXY_USERNAME
public static final java.lang.String SOCKS_PROXY_USERNAMEthe socks proxy username property- See Also:
- Constant Field Values
-
SOCKS_PROXY_PASSWORD
public static final java.lang.String SOCKS_PROXY_PASSWORDthe socks proxy password property- See Also:
- Constant Field Values
-
-
Constructor Details
-
ProxySetup
create a proxy setup class bound to this project- Parameters:
owner
- the project that owns this setup.
-
-
Method Details
-
getSystemProxySetting
public static java.lang.String 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".
-