de.dfki.util.xmlrpc.client
Class StandardXmlRpcClient
java.lang.Object
de.dfki.util.xmlrpc.client.StandardXmlRpcClient
- All Implemented Interfaces:
- XmlRpcClient
public class StandardXmlRpcClient
- extends java.lang.Object
- implements XmlRpcClient
Standard implementation of a XmlRpcClient
.
- Author:
- lauer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardXmlRpcClient
public StandardXmlRpcClient()
StandardXmlRpcClient
public StandardXmlRpcClient(XmlRpcConnection conn)
log
public static java.util.logging.Logger log()
setConnection
public void setConnection(XmlRpcConnection c)
- Specified by:
setConnection
in interface XmlRpcClient
getConnection
public XmlRpcConnection getConnection()
- Specified by:
getConnection
in interface XmlRpcClient
isConnected
public boolean isConnected()
- Specified by:
isConnected
in interface XmlRpcClient
setHandlerName
public void setHandlerName(java.lang.String handlerName)
- Specified by:
setHandlerName
in interface XmlRpcClient
getHandlerName
public java.lang.String getHandlerName()
- Specified by:
getHandlerName
in interface XmlRpcClient
invoke
public <T> T invoke(MethodCall methodCall)
throws org.apache.xmlrpc.XmlRpcException,
java.lang.Exception,
java.io.IOException,
MethodCallParameterException,
TypeConversionException
- Description copied from interface:
XmlRpcClient
- Invokes a XMl-RPC call which is represented by
MethodCall
parameter.
- Specified by:
invoke
in interface XmlRpcClient
- Type Parameters:
T
- The expected return type.- Parameters:
methodCall
- The call to invoke.
- Returns:
- The result from the call. Type conversions are applied.
- Throws:
org.apache.xmlrpc.XmlRpcException
java.lang.Exception
java.io.IOException
MethodCallParameterException
TypeConversionException
prepareCall
public MethodCall prepareCall(MethodSignature sig)
- Description copied from interface:
XmlRpcClient
- Prepares a XML-RPC call by reading a given
MethodSignature
and returning a MethodCall
object to supervise parameter hand over.
- Specified by:
prepareCall
in interface XmlRpcClient
- Parameters:
sig
- The method signature.
- Returns:
- A
MethodCall
object you can add parameters to. To execute the method call invoke XmlRpcClient.invoke(MethodCall)
.
Copyright © 2012. All Rights Reserved.