X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FHTTP.java;fp=src%2Forg%2Fxwt%2FHTTP.java;h=84e5abb7c01f6472818ba185450cac423505385b;hb=9d07963a45f2147a62d8897e9c4245c224d98ccb;hp=eca310fd2e720af93ea47b919e6f39ef16cf340c;hpb=04739ad4085fdc3989ceaebc890649d1568063a2;p=org.ibex.core.git diff --git a/src/org/xwt/HTTP.java b/src/org/xwt/HTTP.java index eca310f..84e5abb 100644 --- a/src/org/xwt/HTTP.java +++ b/src/org/xwt/HTTP.java @@ -276,18 +276,16 @@ public class HTTP { } /** executes the PAC script and dispatches a call to one of the other attempt methods based on the result */ - public Socket attemptPAC(org.xwt.js.JS.Callable pacFunc) { + public Socket attemptPAC(org.xwt.js.JSCallable pacFunc) { if (Log.verbose) Log.log(this, "evaluating PAC script"); String pac = null; try { - org.xwt.js.JS.Array args = new org.xwt.js.JS.Array(); + org.xwt.js.JSArray args = new org.xwt.js.JSArray(); args.addElement(url.toString()); args.addElement(url.getHost()); - /* FIXME Object obj = pacFunc.call(args); if (Log.verbose) Log.log(this, " PAC script returned \"" + obj + "\""); pac = obj.toString(); - */ } catch (Throwable e) { if (Log.on) Log.log(this, "PAC script threw exception " + e); return null; @@ -358,7 +356,7 @@ public class HTTP { OUTER: do { if (pi != null) { for(int i=0; i