You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

setproxy.html 7.1 KiB

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