1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0//EN">
6 <style type=
"text/css">
9 font-family: verdana
, sans-serif
;
29 text-decoration:underline
;
34 text-decoration: none
;
47 border-bottom-width:1px;
48 border-bottom-style:dotted
;
64 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
67 <big><tt>Global.helma.Http.getProxy
()
</tt></big><br>
73 Returns the proxy setting of the Java Virtual Machine
74 the Helma application server is running in. If no
75 proxy is set, this method returns boolean false.
<br><br>
79 <li><b>Returns
</b><br>
80 The global proxy setting in
<code>host:port
</code> format (eg.
"proxy.example.com:3128"), or boolean false.
91 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
93 <td>Sourcecode in /root/helma-
1.6.1/modules/helma/Http.js:
94 <pre><font color=
"#aaaaaa">664:
</font> helma.Http.getProxy = function() {
95 <font color=
"#aaaaaa">665:
</font> var sys = java.lang.System.getProperties();
96 <font color=
"#aaaaaa">666:
</font> if (sys.get(
<font color=
"#9999aa">"http.proxySet
"</font>) ==
<font color=
"#9999aa">"true
"</font>)
97 <font color=
"#aaaaaa">667:
</font> return sys.get(
<font color=
"#9999aa">"http.proxyHost
"</font>) +
<font color=
"#9999aa">":
"</font> + sys.get(
<font color=
"#9999aa">"http.proxyPort
"</font>);
98 <font color=
"#aaaaaa">668:
</font> return false;
99 <font color=
"#aaaaaa">669:
</font> }