Package de.timroes.axmlrpc
Class Call
- java.lang.Object
-
- de.timroes.axmlrpc.Call
-
public class Call extends java.lang.Object
A Call object represents a call of a remote methode. It contains the name of the method to be called and the parameters to use in this remote procedure call. To send it over the network the method getXML returns an xml representation according to the XML-RPC specification as a String.- Author:
- Tim Roes
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getXML(boolean debugMode)
Return an xml representation of the method call as specified in http://www.xmlrpc.com/spec.
-
-
-
Constructor Detail
-
Call
public Call(java.lang.String method)
Create a new method call with the given name and no parameters.- Parameters:
method
- The method to be called.
-
Call
public Call(java.lang.String method, java.lang.Object[] params)
Create a new method call with the given name and parameters.- Parameters:
method
- The method to be called.params
- An array of parameters for the method.
-
-
Method Detail
-
getXML
public java.lang.String getXML(boolean debugMode) throws XMLRPCException
Return an xml representation of the method call as specified in http://www.xmlrpc.com/spec. If flags have been set in the XMLRPCClient the returning xml does not comply strict to the standard.- Returns:
- The string of the xml representing this call.
- Throws:
XMLRPCException
- Will be thrown whenever the xml representation cannot be build without errors.- See Also:
XMLRPCClient
-
-