de.dfki.util.xmlrpc.client
Interface XmlRpcClient
- All Known Implementing Classes:
- StandardXmlRpcClient
public interface XmlRpcClient
setConnection
void setConnection(XmlRpcConnection c)
getConnection
XmlRpcConnection getConnection()
isConnected
boolean isConnected()
setHandlerName
void setHandlerName(java.lang.String handlerName)
getHandlerName
java.lang.String getHandlerName()
invoke
<T> T invoke(MethodCall method)
throws org.apache.xmlrpc.XmlRpcException,
java.lang.Exception,
java.io.IOException,
MethodCallParameterException,
TypeConversionException
- Invokes a XMl-RPC call which is represented by
MethodCall
parameter.
- Type Parameters:
T
- The expected return type.- Parameters:
method
- 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
MethodCall prepareCall(MethodSignature sig)
- Prepares a XML-RPC call by reading a given
MethodSignature
and returning a MethodCall
object to supervise parameter hand over.
- Parameters:
sig
- The method signature.
- Returns:
- A
MethodCall
object you can add parameters to. To execute the method call invoke invoke(MethodCall)
.
Copyright © 2012. All Rights Reserved.