org.apache.xmlrpc
Class XmlRpcClientLite

java.lang.Object
  |
  +--org.apache.xmlrpc.XmlRpcClient
        |
        +--org.apache.xmlrpc.XmlRpcClientLite
All Implemented Interfaces:
XmlRpcHandler

public class XmlRpcClientLite
extends 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).

Author:
Hannes Wallnoefer

Inner Class Summary
(package private)  class XmlRpcClientLite.HttpClient
           
(package private)  class XmlRpcClientLite.LiteWorker
           
 
Inner classes inherited from class org.apache.xmlrpc.XmlRpcClient
XmlRpcClient.CallData, XmlRpcClient.Worker
 
Field Summary
(package private) static java.lang.String auth
           
 
Fields inherited from class org.apache.xmlrpc.XmlRpcClient
asyncWorkers, first, last, pool, url, workers
 
Constructor Summary
XmlRpcClientLite(java.lang.String url)
          Construct a XML-RPC client for the URL represented by this String.
XmlRpcClientLite(java.lang.String hostname, int port)
          Construct a XML-RPC client for the specified hostname and port.
XmlRpcClientLite(java.net.URL url)
          Construct a XML-RPC client with this URL.
 
Method Summary
(package private)  XmlRpcClient.Worker getWorker(boolean async)
           
static void main(java.lang.String[] args)
          Just for testing.
 
Methods inherited from class org.apache.xmlrpc.XmlRpcClient
dequeue, enqueue, execute, executeAsync, getURL, releaseWorker, setBasicAuthentication
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

auth

static java.lang.String auth
Constructor Detail

XmlRpcClientLite

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

XmlRpcClientLite

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

XmlRpcClientLite

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

getWorker

XmlRpcClient.Worker getWorker(boolean async)
                        throws java.io.IOException
Overrides:
getWorker in class XmlRpcClient

main

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


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.