1 |
|
---|
2 | <html>
|
---|
3 | <head>
|
---|
4 | <meta http-equiv="Content-Language" content="en-us">
|
---|
5 | <title>Setproxy
|
---|
6 | Task</title>
|
---|
7 | </head>
|
---|
8 |
|
---|
9 | <body bgcolor="#ffffff" text="#000000" link="#525D76"
|
---|
10 | alink="#525D76" vlink="#525D76">
|
---|
11 |
|
---|
12 | <table border="0" width="100%" cellspacing="4">
|
---|
13 |
|
---|
14 | <!-- PAGE HEADER -->
|
---|
15 | <tr>
|
---|
16 | <td>
|
---|
17 | <table border="0" width="100%"><tr>
|
---|
18 | <td valign="bottom">
|
---|
19 | <font size="+3" face="arial,helvetica,sanserif"><strong>Setproxy
|
---|
20 | Task</strong></font>
|
---|
21 | <br><font face="arial,helvetica,sanserif">Sets Java's web proxy properties, so that tasks and code run in the same JVM can have through-the-firewall access to remote web sites, and remote ftp sites.</font>
|
---|
22 | </td>
|
---|
23 | <td>
|
---|
24 | <!-- PROJECT LOGO -->
|
---|
25 | <a href="http://ant.apache.org/">
|
---|
26 | <img src="../../images/ant_logo_large.gif" align="right" alt="Apache Ant" border="0"/>
|
---|
27 | </a>
|
---|
28 | </td>
|
---|
29 | </tr></table>
|
---|
30 | </td>
|
---|
31 | </tr>
|
---|
32 |
|
---|
33 | <!-- START RIGHT SIDE MAIN BODY -->
|
---|
34 | <tr>
|
---|
35 | <td valign="top" align="left">
|
---|
36 |
|
---|
37 | <!-- Applying task/long-description -->
|
---|
38 | <!-- Start Description -->
|
---|
39 | <table border="0" cellspacing="0" cellpadding="2" width="100%">
|
---|
40 | <tr><td> </td></tr>
|
---|
41 |
|
---|
42 | <tr><td bgcolor="#525D76">
|
---|
43 | <font color="#ffffff" face="arial,helvetica.sanserif">
|
---|
44 | <a name="description">
|
---|
45 | <strong>Description</strong></a></font>
|
---|
46 | </td></tr>
|
---|
47 |
|
---|
48 | <tr><td><blockquote>
|
---|
49 | Sets Java's web proxy properties, so that tasks and code run in the same JVM can have through-the-firewall access to remote web sites, and remote ftp sites. You can nominate an http and ftp proxy, or a socks server, reset the server settings, or do nothing at all. <p> Examples <pre><setproxy/></pre> do nothing <pre><setproxy proxyhost="firewall"/></pre> set the proxy to firewall:80 <pre><setproxy proxyhost="firewall" proxyport="81"/></pre> set the proxy to firewall:81 <pre><setproxy proxyhost=""/></pre> stop using the http proxy; don't change the socks settings <pre><setproxy socksproxyhost="socksy"/></pre> use socks via socksy:1080 <pre><setproxy socksproxyhost=""/></pre> stop using the socks server. <p> You can set a username and password for http with the <tt>proxyHost</tt> and <tt>proxyPassword</tt> attributes. On Java1.4 and above these can also be used against SOCKS5 servers. </p>
|
---|
50 | </blockquote></td></tr>
|
---|
51 |
|
---|
52 | </table>
|
---|
53 | <!-- End Description -->
|
---|
54 |
|
---|
55 | <!-- Ignore -->
|
---|
56 |
|
---|
57 |
|
---|
58 |
|
---|
59 | <!-- Start Attributes -->
|
---|
60 | <table border="0" cellspacing="0" cellpadding="2" width="100%">
|
---|
61 | <tr><td> </td></tr>
|
---|
62 | <tr><td bgcolor="#525D76">
|
---|
63 | <font color="#ffffff" face="arial,helvetica.sanserif">
|
---|
64 | <a name="attributes">
|
---|
65 | <strong>Parameters</strong></a></font>
|
---|
66 | </td></tr>
|
---|
67 | <tr><td><blockquote>
|
---|
68 | <table>
|
---|
69 | <tr>
|
---|
70 | <td bgcolor="#cccccc" valign="top" align="left">
|
---|
71 | <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Attribute</b></font>
|
---|
72 | </td>
|
---|
73 | <td bgcolor="#cccccc" valign="top" align="left">
|
---|
74 | <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Description</b></font>
|
---|
75 | </td>
|
---|
76 | <td bgcolor="#cccccc" valign="top" align="left">
|
---|
77 | <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Type</b></font>
|
---|
78 | </td>
|
---|
79 | <td bgcolor="#cccccc" valign="top" align="left">
|
---|
80 | <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Requirement</b></font>
|
---|
81 | </td>
|
---|
82 | </tr>
|
---|
83 | <!-- Attribute Group -->
|
---|
84 |
|
---|
85 | <!-- Attribute Group -->
|
---|
86 | <!-- Attribute -->
|
---|
87 | <tr>
|
---|
88 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
89 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">nonproxyhosts</font>
|
---|
90 | </td>
|
---|
91 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
92 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">A list of hosts to bypass the proxy on. These should be separated with the vertical bar character '|'. Only in Java 1.4 does ftp use this list. e.g. fozbot.corp.sun.com|*.eng.sun.com</font>
|
---|
93 | </td>
|
---|
94 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
95 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
|
---|
96 | </td>
|
---|
97 | <td bgcolor="#eeeeee" valign="top" align="left" rowspan="7">
|
---|
98 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">Optional</font>
|
---|
99 | </td>
|
---|
100 | </tr>
|
---|
101 | <!-- Attribute -->
|
---|
102 | <tr>
|
---|
103 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
104 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">proxyhost</font>
|
---|
105 | </td>
|
---|
106 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
107 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">the HTTP/ftp proxy host. Set this to "" for the http proxy option to be disabled</font>
|
---|
108 | </td>
|
---|
109 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
110 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
|
---|
111 | </td>
|
---|
112 | </tr>
|
---|
113 | <!-- Attribute -->
|
---|
114 | <tr>
|
---|
115 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
116 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">proxypassword</font>
|
---|
117 | </td>
|
---|
118 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
119 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">Set the password for the proxy. Used only if the proxyUser is set.</font>
|
---|
120 | </td>
|
---|
121 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
122 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
|
---|
123 | </td>
|
---|
124 | </tr>
|
---|
125 | <!-- Attribute -->
|
---|
126 | <tr>
|
---|
127 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
128 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">proxyport</font>
|
---|
129 | </td>
|
---|
130 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
131 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">the HTTP/ftp proxy port number; default is 80</font>
|
---|
132 | </td>
|
---|
133 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
134 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">int</font>
|
---|
135 | </td>
|
---|
136 | </tr>
|
---|
137 | <!-- Attribute -->
|
---|
138 | <tr>
|
---|
139 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
140 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">proxyuser</font>
|
---|
141 | </td>
|
---|
142 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
143 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">set the proxy user. Probably requires a password to accompany this setting. Default=""</font>
|
---|
144 | </td>
|
---|
145 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
146 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
|
---|
147 | </td>
|
---|
148 | </tr>
|
---|
149 | <!-- Attribute -->
|
---|
150 | <tr>
|
---|
151 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
152 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">socksproxyhost</font>
|
---|
153 | </td>
|
---|
154 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
155 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">The name of a Socks server. Set to "" to turn socks proxying off.</font>
|
---|
156 | </td>
|
---|
157 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
158 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
|
---|
159 | </td>
|
---|
160 | </tr>
|
---|
161 | <!-- Attribute -->
|
---|
162 | <tr>
|
---|
163 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
164 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">socksproxyport</font>
|
---|
165 | </td>
|
---|
166 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
167 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">Set the ProxyPort for socks connections. The default value is 1080</font>
|
---|
168 | </td>
|
---|
169 | <td bgcolor="#eeeeee" valign="top" align="left">
|
---|
170 | <font color="#000000" size="-1" face="arial,helvetica,sanserif">int</font>
|
---|
171 | </td>
|
---|
172 | </tr>
|
---|
173 |
|
---|
174 |
|
---|
175 | </table>
|
---|
176 | </blockquote></td></tr>
|
---|
177 |
|
---|
178 | </table>
|
---|
179 | <!-- End Attributes -->
|
---|
180 |
|
---|
181 | <!-- Start Elements -->
|
---|
182 | <table border="0" cellspacing="0" cellpadding="2" width="100%">
|
---|
183 | <tr><td> </td></tr>
|
---|
184 |
|
---|
185 | <tr><td bgcolor="#525D76">
|
---|
186 | <font color="#ffffff" face="arial,helvetica.sanserif">
|
---|
187 | <a name="elements">
|
---|
188 | <strong>Parameters as nested elements</strong></a></font>
|
---|
189 | </td></tr>
|
---|
190 |
|
---|
191 | <tr><td><blockquote>
|
---|
192 |
|
---|
193 | </blockquote></td></tr>
|
---|
194 |
|
---|
195 | </table>
|
---|
196 | <!-- End Elements -->
|
---|
197 |
|
---|
198 |
|
---|
199 | </td>
|
---|
200 | </tr>
|
---|
201 | <!-- END RIGHT SIDE MAIN BODY -->
|
---|
202 |
|
---|
203 | <!-- FOOTER SEPARATOR -->
|
---|
204 | <tr>
|
---|
205 | <td>
|
---|
206 | <hr noshade="" size="1"/>
|
---|
207 | </td>
|
---|
208 | </tr>
|
---|
209 |
|
---|
210 | <!-- PAGE FOOTER -->
|
---|
211 | <tr>
|
---|
212 | <td>
|
---|
213 | <div align="center"><font color="#525D76" size="-1"><em>
|
---|
214 | Copyright © 2000-2003, Apache Software Foundation
|
---|
215 | </em></font></div>
|
---|
216 | </td>
|
---|
217 | </tr>
|
---|
218 |
|
---|
219 | </table>
|
---|
220 |
|
---|
221 | </body>
|
---|
222 | </html>
|
---|