helma.xmlrpc
Class XmlRpcClient

java.lang.Object
  |
  +--helma.xmlrpc.XmlRpcClient
All Implemented Interfaces:
XmlRpcHandler

public class XmlRpcClient
extends java.lang.Object
implements XmlRpcHandler

A multithreaded, reusable XML-RPC client object.


Constructor Summary
XmlRpcClient(java.lang.String url)
          Construct a XML-RPC client for the URL represented by this String.
XmlRpcClient(java.lang.String hostname, int port)
          Construct a XML-RPC client for the specified hostname and port.
XmlRpcClient(java.net.URL url)
          Construct a XML-RPC client with this URL.
 
Method Summary
 java.lang.Object execute(java.lang.String method, java.util.Vector params)
          Generate an XML-RPC request and send it to the server.
static void main(java.lang.String[] args)
          Just for testing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlRpcClient

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

XmlRpcClient

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

XmlRpcClient

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

execute

public java.lang.Object execute(java.lang.String method,
                                java.util.Vector params)
                         throws XmlRpcException,
                                java.io.IOException
Generate an XML-RPC request and send it to the server. Parse the result and return the corresponding Java object.
Specified by:
execute in interface XmlRpcHandler
Throws:
XmlRpcException: - If the remote host returned a fault message.
IOException: - If the call could not be made because of lower level problems.

main

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