X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FXMLRPC.java;h=ce1fab2c82b336f4dbbf08d3c787ba93e46cf39e;hb=f3b7bcb8cecf6f0aa3b7283eb987466d72e48af5;hp=27bfcc56fb61fb0496da72a51645a498b770e0d1;hpb=e58686eae8a823ed64ed0ec92c2274c41d90ec93;p=org.ibex.core.git diff --git a/src/org/xwt/XMLRPC.java b/src/org/xwt/XMLRPC.java index 27bfcc5..ce1fab2 100644 --- a/src/org/xwt/XMLRPC.java +++ b/src/org/xwt/XMLRPC.java @@ -30,7 +30,7 @@ import org.bouncycastle.util.encoders.Base64; * convert. * */ -class XMLRPC extends JS.Function { +class XMLRPC extends JS.Callable { public Object[] keys() { throw new Error("not implemented"); } @@ -151,7 +151,7 @@ class XMLRPC extends JS.Function { } else if (c.localName.equals("data")) { int i; for(i=objects.size() - 1; objects.elementAt(i) != null; i--); - JS.Array arr = new JS.Array(); + Array arr = new Array(); for(int j = i + 1; j\n"); */ - } else if (o instanceof JS.Array) { + } else if (o instanceof Array) { if (tracker.get(o) != null) throw new JS.Exn("attempted to send multi-ref data structure via XML-RPC"); tracker.put(o, Boolean.TRUE); sb.append(" \n"); - JS.Array a = (JS.Array)o; + Array a = (Array)o; for(int i=0; i\n"); @@ -292,7 +292,7 @@ class XMLRPC extends JS.Function { // this is synchronized in case multiple threads try to make a call on the same object... in the future, change this // behavior to use pipelining. - public synchronized Object call2(JS.Array args) throws JS.Exn, IOException { + public synchronized Object call2(Array args) throws JS.Exn, IOException { if (Log.verbose) Log.log(this, "call to " + url + " : " + methodname); if (tracker == null) tracker = new Hash(); @@ -333,7 +333,7 @@ class XMLRPC extends JS.Function { } } - protected String send(JS.Array args, HTTP http) throws JS.Exn, IOException { + protected String send(Array args, HTTP http) throws JS.Exn, IOException { StringBuffer content = new StringBuffer(); content.append("\r\n"); content.append("\n"); @@ -366,7 +366,7 @@ class XMLRPC extends JS.Function { return objects.elementAt(0); } - public final Object _call(JS.Array args) throws JS.Exn { + public final Object call(Array args) throws JS.Exn { if (!ThreadMessage.suspendThread()) return null;