org.apache.xmlrpc
Class P2PXmlRpcClientLite

java.lang.Object
  extended byorg.apache.xmlrpc.XmlRpcClient
      extended byorg.apache.xmlrpc.P2PXmlRpcClientLite
All Implemented Interfaces:
org.apache.xmlrpc.XmlRpcHandler

public class P2PXmlRpcClientLite
extends org.apache.xmlrpc.XmlRpcClient

A multithreaded, reusable XML-RPC client object. This version uses a homegrown HTTP client which can be quite a bit faster than java.net.URLConnection, especially when used with XmlRpc.setKeepAlive(true). This class has been modified to work with Jxta P2P Sockets.

Version:
$Id: P2PXmlRpcClientLite.java,v 1.1 2004/01/15 10:26:54 BradNeuberg Exp $
Author:
Hannes Wallnoefer, Brad GNUberg - Modified to work with Jxta P2P Sockets.

Field Summary
 
Fields inherited from class org.apache.xmlrpc.XmlRpcClient
asyncWorkers, pool, url, workers
 
Constructor Summary
P2PXmlRpcClientLite(java.lang.String url)
          Construct a XML-RPC client for the URL represented by this String.
P2PXmlRpcClientLite(java.lang.String hostname, int port)
          Construct a XML-RPC client for the specified hostname and port.
P2PXmlRpcClientLite(java.net.URL url)
          Construct a XML-RPC client with this URL.
 
Method Summary
static void main(java.lang.String[] args)
          Just for testing.
 
Methods inherited from class org.apache.xmlrpc.XmlRpcClient
execute, executeAsync, getURL, setBasicAuthentication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

P2PXmlRpcClientLite

public P2PXmlRpcClientLite(java.net.URL url)
Construct a XML-RPC client with this URL.


P2PXmlRpcClientLite

public P2PXmlRpcClientLite(java.lang.String url)
                    throws java.net.MalformedURLException
Construct a XML-RPC client for the URL represented by this String.


P2PXmlRpcClientLite

public P2PXmlRpcClientLite(java.lang.String hostname,
                           int port)
                    throws java.net.MalformedURLException
Construct a XML-RPC client for the specified hostname and port.

Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Just for testing.

Throws:
java.lang.Exception