de.dfki.util.xmlrpc.common
Class XmlRpcConnection

java.lang.Object
  extended by de.dfki.util.xmlrpc.common.XmlRpcConnection

public class XmlRpcConnection
extends java.lang.Object

Virtual connection to a XML-RPC server. Actually the connection will be opened when a method is called.

Author:
lauer

Nested Class Summary
static class XmlRpcConnection.Id
          Identifies XML-RPC connections.
 
Constructor Summary
protected XmlRpcConnection(org.apache.xmlrpc.XmlRpcClient conn)
           
 
Method Summary
static XmlRpcConnection connect(java.lang.String urlAsString)
           
static XmlRpcConnection connect(java.lang.String host, int port)
          Connects to http://[host]:[port]/RPC2
static XmlRpcConnection connect(java.lang.String host, int port, java.lang.String path)
          Connects to http://[host]:[port]/[path]
static XmlRpcConnection connect(java.net.URL url)
           
static XmlRpcConnection connect(XmlRpcConnection.Id connId)
           
 java.lang.Object invoke(MethodCall methodCall)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlRpcConnection

protected XmlRpcConnection(org.apache.xmlrpc.XmlRpcClient conn)
Method Detail

connect

public static XmlRpcConnection connect(XmlRpcConnection.Id connId)

connect

public static XmlRpcConnection connect(java.lang.String host,
                                       int port)
Connects to http://[host]:[port]/RPC2


connect

public static XmlRpcConnection connect(java.lang.String host,
                                       int port,
                                       java.lang.String path)
Connects to http://[host]:[port]/[path]


connect

public static XmlRpcConnection connect(java.lang.String urlAsString)
                                throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

connect

public static XmlRpcConnection connect(java.net.URL url)

invoke

public java.lang.Object invoke(MethodCall methodCall)
                        throws java.lang.Exception,
                               java.io.IOException,
                               MethodCallParameterException
Throws:
java.lang.Exception
java.io.IOException
MethodCallParameterException


Copyright © 2009. All Rights Reserved.