Top Description Fields Constructors Methods
org.apache.tools.ant.util

public Class ProxySetup

extends Object
Class Inheritance
Imports
org.apache.tools.ant.Project

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 TypeField and Description
public static final String
FTP_NON_PROXY_HOSTS

the ftp hosts not to be proxied property

public static final String
FTP_PROXY_HOST

the ftp proxyhost property

public static final String
FTP_PROXY_PORT

the ftp proxyport property

public static final String
HTTP_NON_PROXY_HOSTS

the ftp proxyport property

public static final String
HTTP_PROXY_HOST

the http proxyhost property

public static final String
HTTP_PROXY_PASSWORD

the http proxy password property

public static final String
HTTP_PROXY_PORT

the http proxyport property

public static final String
HTTP_PROXY_USERNAME

the http proxy username property

public static final String
HTTPS_NON_PROXY_HOSTS

the http hosts not to be proxied property

public static final String
HTTPS_PROXY_HOST

the https proxyhost property

public static final String
HTTPS_PROXY_PORT

the https proxyport property

private Project
owner

owner project; used for logging and extracting properties

public static final String
SOCKS_PROXY_HOST

the socks proxy host property

public static final String
SOCKS_PROXY_PASSWORD

the socks proxy password property

public static final String
SOCKS_PROXY_PORT

the socks proxy port property

public static final String
SOCKS_PROXY_USERNAME

the socks proxy username property

public static final String
USE_SYSTEM_PROXIES

Java1.5 property that enables use of system proxies.

Constructor Summary

AccessConstructor and Description
public
ProxySetup(Project
the project that owns this setup.
owner
)

create a proxy setup class bound to this project

Method Summary

Modifier and TypeMethod and Description
public void
enableProxies()

turn proxies on; if the proxy key is already set to some value: leave alone.

public static String

Returns:

current value; null for none or no access
getSystemProxySetting
()

Get the current system property settings

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FTP_NON_PROXY_HOSTSback to summary
public static final String FTP_NON_PROXY_HOSTS

the ftp hosts not to be proxied property

FTP_PROXY_HOSTback to summary
public static final String FTP_PROXY_HOST

the ftp proxyhost property

FTP_PROXY_PORTback to summary
public static final String FTP_PROXY_PORT

the ftp proxyport property

HTTP_NON_PROXY_HOSTSback to summary
public static final String HTTP_NON_PROXY_HOSTS

the ftp proxyport property

HTTP_PROXY_HOSTback to summary
public static final String HTTP_PROXY_HOST

the http proxyhost property

HTTP_PROXY_PASSWORDback to summary
public static final String HTTP_PROXY_PASSWORD

the http proxy password property

HTTP_PROXY_PORTback to summary
public static final String HTTP_PROXY_PORT

the http proxyport property

HTTP_PROXY_USERNAMEback to summary
public static final String HTTP_PROXY_USERNAME

the http proxy username property

HTTPS_NON_PROXY_HOSTSback to summary
public static final String HTTPS_NON_PROXY_HOSTS

the http hosts not to be proxied property

HTTPS_PROXY_HOSTback to summary
public static final String HTTPS_PROXY_HOST

the https proxyhost property

HTTPS_PROXY_PORTback to summary
public static final String HTTPS_PROXY_PORT

the https proxyport property

ownerback to summary
private Project owner

owner project; used for logging and extracting properties

SOCKS_PROXY_HOSTback to summary
public static final String SOCKS_PROXY_HOST

the socks proxy host property

SOCKS_PROXY_PASSWORDback to summary
public static final String SOCKS_PROXY_PASSWORD

the socks proxy password property

SOCKS_PROXY_PORTback to summary
public static final String SOCKS_PROXY_PORT

the socks proxy port property

SOCKS_PROXY_USERNAMEback to summary
public static final String SOCKS_PROXY_USERNAME

the socks proxy username property

USE_SYSTEM_PROXIESback to summary
public static final String USE_SYSTEM_PROXIES

Java1.5 property that enables use of system proxies.

Constructor Detail

ProxySetupback to summary
public ProxySetup(Project owner)

create a proxy setup class bound to this project

Parameters
owner:Project

the project that owns this setup.

Method Detail

enableProxiesback to summary
public void enableProxies()

turn proxies on; if the proxy key is already set to some value: leave alone. if an ant property of the value USE_SYSTEM_PROXIES is set, use that instead. Else set to "true".

getSystemProxySettingback to summary
public static String getSystemProxySetting()

Get the current system property settings

Returns:String

current value; null for none or no access