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)
          Deprecated. use create(String) instead.
static XmlRpcConnection connect(java.lang.String host, int port)
          Deprecated. use create(String, int) instead.
static XmlRpcConnection connect(java.lang.String host, int port, java.lang.String path)
          Deprecated. use create(String, int, String) instead.
static XmlRpcConnection connect(java.net.URL url)
          Deprecated. use create(URL) instead.
static XmlRpcConnection connect(XmlRpcConnection.Id connId)
          Deprecated. use create(Id) instead.
static XmlRpcConnection create(java.lang.String urlAsString)
          Creates a connection object to a URL (in String representation)
static XmlRpcConnection create(java.lang.String host, int port)
          Creates a connection object to http://[host]:[port]/RPC2
static XmlRpcConnection create(java.lang.String host, int port, java.lang.String path)
          Creates a connection object to http://[host]:[port]/[path]
static XmlRpcConnection create(java.net.URL url)
          Creates a connection object to a URL
static XmlRpcConnection create(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

@Deprecated
public static XmlRpcConnection connect(XmlRpcConnection.Id connId)
Deprecated. use create(Id) instead.


connect

@Deprecated
public static XmlRpcConnection connect(java.lang.String host,
                                                  int port)
Deprecated. use create(String, int) instead.

Connects to http://[host]:[port]/RPC2


connect

@Deprecated
public static XmlRpcConnection connect(java.lang.String host,
                                                  int port,
                                                  java.lang.String path)
Deprecated. use create(String, int, String) instead.

Connects to http://[host]:[port]/[path]


connect

@Deprecated
public static XmlRpcConnection connect(java.lang.String urlAsString)
                                throws java.net.MalformedURLException
Deprecated. use create(String) instead.

Connects to a URL (in String representation)

Throws:
java.net.MalformedURLException

connect

@Deprecated
public static XmlRpcConnection connect(java.net.URL url)
Deprecated. use create(URL) instead.

Connects to a URL


create

public static XmlRpcConnection create(XmlRpcConnection.Id connId)

create

public static XmlRpcConnection create(java.lang.String host,
                                      int port)
Creates a connection object to http://[host]:[port]/RPC2


create

public static XmlRpcConnection create(java.lang.String host,
                                      int port,
                                      java.lang.String path)
Creates a connection object to http://[host]:[port]/[path]


create

public static XmlRpcConnection create(java.lang.String urlAsString)
                               throws java.net.MalformedURLException
Creates a connection object to a URL (in String representation)

Throws:
java.net.MalformedURLException

create

public static XmlRpcConnection create(java.net.URL url)
Creates a connection object to a 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 © 2012. All Rights Reserved.