ws-xmlrpc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: xml-rpc/src/java/org/apache/xmlrpc XmlRpcClient.java
Date Fri, 25 Jan 2002 23:47:30 GMT
dlr         02/01/25 15:47:30

  Modified:    src/java/org/apache/xmlrpc XmlRpcClient.java
  Log:
  o Improved formatting.
  
  o Added debug to start of Worker::execute().
  
  Revision  Changes    Path
  1.4       +10 -6     xml-rpc/src/java/org/apache/xmlrpc/XmlRpcClient.java
  
  Index: XmlRpcClient.java
  ===================================================================
  RCS file: /home/cvs/xml-rpc/src/java/org/apache/xmlrpc/XmlRpcClient.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -u -r1.3 -r1.4
  --- XmlRpcClient.java	8 Nov 2001 17:44:02 -0000	1.3
  +++ XmlRpcClient.java	25 Jan 2002 23:47:30 -0000	1.4
  @@ -70,7 +70,6 @@
   public class XmlRpcClient 
       implements XmlRpcHandler
   {
  -
       URL url;
       String auth;
       int maxThreads = 100;
  @@ -105,7 +104,7 @@
       public XmlRpcClient (String hostname,
               int port) throws MalformedURLException
       {
  -        this.url = new URL ("http://"+hostname + ":"+port + "/RPC2");
  +        this.url = new URL ("http://" + hostname + ':' + port + "/RPC2");
       }
   
       /**
  @@ -149,7 +148,9 @@
               Object retval = worker.execute (method, params);
               return retval;
           }
  -        finally { releaseWorker (worker, false);
  +        finally
  +        {
  +            releaseWorker (worker, false);
           }
       }
   
  @@ -252,7 +253,6 @@
   
       class Worker extends XmlRpc implements Runnable
       {
  -
           boolean fault;
           Object result = null;
           StringBuffer strbuf;
  @@ -264,7 +264,6 @@
               super ();
           }
   
  -
           public void start (String method, Vector params,
                   AsyncCallback callback)
           {
  @@ -315,6 +314,10 @@
           Object execute (String method,
                   Vector params) throws XmlRpcException, IOException
           {
  +            if (debug)
  +                System.err.println("Client calling procedure '" + method +
  +                                   "' with parameters " + params);
  +
               fault = false;
               long now = System.currentTimeMillis ();
               try
  @@ -354,7 +357,8 @@
                   throw new IOException (x.getMessage ());
               }
               if (fault)
  -            { // generate an XmlRpcException
  +            {
  +                // generate an XmlRpcException
                   XmlRpcException exception = null;
                   try
                   {
  
  
  

Mime
View raw message