de.dfki.util.xmlrpc.common
Class XmlRpcConnection
java.lang.Object
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
Constructor Summary |
protected |
XmlRpcConnection(org.apache.xmlrpc.XmlRpcClient conn)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlRpcConnection
protected XmlRpcConnection(org.apache.xmlrpc.XmlRpcClient conn)
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.