org.apache.xmlrpc

Class XmlRpcClientLite

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).
Version:
$Id: XmlRpcClientLite.java 233919 2005-04-22 10:26:17Z hgomez $
Authors:
Hannes Wallnoefer
Andrew Evers

Nested Class Summary

Nested classes/interfaces inherited from class org.apache.xmlrpc.XmlRpcClient

XmlRpcClient.CallData, XmlRpcClient.XmlRpcClientAsyncThread

Field Summary

Fields inherited from class org.apache.xmlrpc.XmlRpcClient

asyncWorkers, first, last, maxThreads, pool, storedPassword, storedUser, transportFactory, tz, url, workers

Constructor Summary

XmlRpcClientLite(String url)
Construct a XML-RPC client for the URL represented by this String.
XmlRpcClientLite(String hostname, int port)
Construct a XML-RPC client for the specified hostname and port.
XmlRpcClientLite(URL url)
Construct a XML-RPC client with this URL.

Method Summary

protected XmlRpcTransport
createTransport()
static void
main(args[] )
Just for testing.

Methods inherited from class org.apache.xmlrpc.XmlRpcClient

createDefaultTransport, createTransport, dequeue, enqueue, execute, execute, execute, executeAsync, executeAsync, executeAsync, getMaxThreads, getTimeZone, getURL, getWorker, main, releaseWorker, setBasicAuthentication, setMaxThreads, setTimeZone

Constructor Details

XmlRpcClientLite

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

XmlRpcClientLite

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

XmlRpcClientLite

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

Method Details

createTransport

protected XmlRpcTransport createTransport()
Overrides:
createTransport in interface XmlRpcClient

main

public static void main(args[] )
            throws Exception
Just for testing.
Overrides:
main in interface XmlRpcClient

Copyright B) 1999-2002 Apache Software Foundation. All Rights Reserved.