Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.xmlrpc
Class XmlRpcClientLite  view XmlRpcClientLite download XmlRpcClientLite.java

java.lang.Object
  extended byorg.apache.xmlrpc.XmlRpcClient
      extended byorg.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).

Version:
$Id: XmlRpcClientLite.java,v 1.13 2005/04/22 10:25:57 hgomez Exp $

Nested Class Summary
 
Nested classes inherited from class org.apache.xmlrpc.XmlRpcClient
XmlRpcClient.CallData, XmlRpcClient.XmlRpcClientAsyncThread
 
Field Summary
 
Fields inherited from class org.apache.xmlrpc.XmlRpcClient
asyncWorkers, pool, transportFactory, 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
protected  XmlRpcTransport createTransport()
           
static void main(java.lang.String[] args)
          Just for testing.
 
Methods inherited from class org.apache.xmlrpc.XmlRpcClient
dequeue, enqueue, execute, execute, execute, executeAsync, executeAsync, executeAsync, getMaxThreads, getURL, getWorker, releaseWorker, setBasicAuthentication, setMaxThreads
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

createTransport

protected XmlRpcTransport createTransport()
Overrides:
createTransport in class XmlRpcClient

main

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