![]()
|
SetProxy (Apache Ant API)
org.apache.tools.ant.taskdefs.optional.net
|
Field Summary | |
protected java.lang.String |
proxyHost
proxy details |
protected int |
proxyPort
name of proxy port |
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
SetProxy()
|
Method Summary | |
void |
applyWebProxySettings()
if the proxy port and host settings are not null, then the settings get applied these settings last beyond the life of the object and apply to all network connections Relevant docs: buglist #4183340 |
void |
execute()
Does the work. |
protected boolean |
legacyResetProxySettingsCall(boolean setProxy)
make a call to sun.net.www.http.HttpClient.resetProperties(); this is only needed for java 1.1; reflection is used to stop the compiler whining, and in case cleanroom JVMs dont have the class. |
void |
setNonProxyHosts(java.lang.String nonProxyHosts)
A list of hosts to bypass the proxy on. |
void |
setProxyHost(java.lang.String hostname)
the HTTP/ftp proxy host. |
void |
setProxyPort(int port)
the HTTP/ftp proxy port number; default is 80 |
void |
setSocksProxyHost(java.lang.String host)
The name of a Socks server. |
void |
setSocksProxyPort(int port)
Set the ProxyPort for socks connections. |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String proxyHost
protected int proxyPort
Constructor Detail |
public SetProxy()
Method Detail |
public void setProxyHost(java.lang.String hostname)
hostname
- the new proxy hostnamepublic void setProxyPort(int port)
port
- port number of the proxypublic void setSocksProxyHost(java.lang.String host)
host
- The new SocksProxyHost valuepublic void setSocksProxyPort(int port)
port
- The new SocksProxyPort valuepublic void setNonProxyHosts(java.lang.String nonProxyHosts)
nonProxyHosts
- lists of hosts to talk direct topublic void applyWebProxySettings()
protected boolean legacyResetProxySettingsCall(boolean setProxy)
public void execute() throws BuildException
BuildException
- thrown in unrecoverable error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |