Class XmlRpcCall
java.lang.Object
org.astrogrid.samp.xmlrpc.internal.XmlRpcCall
Represents the content of an XML-RPC methodCall element.
- Since:
- 11 Mar 2016
- Author:
- Mark Taylor
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic XmlRpcCall
createCall
(Document callDoc) Constructs an XmlRpcCall instance from a document with a methodCall element at top level.Returns the method name.Returns the parameter list.
-
Constructor Details
-
XmlRpcCall
Constructor.- Parameters:
methodName
- content ofmethodName
elementparams
- SAMP-friendly list of parameters as contained in theparams
element
-
-
Method Details
-
getMethodName
Returns the method name.- Returns:
- content of
methodName
element
-
getParams
Returns the parameter list.- Returns:
- SAMP-friendly list of parameter values from
params
element
-
createCall
public static XmlRpcCall createCall(Document callDoc) throws org.astrogrid.samp.xmlrpc.internal.XmlRpcFormatException Constructs an XmlRpcCall instance from a document with a methodCall element at top level.- Parameters:
callDoc
- node whose child is an XML-RPCmethodCall
element- Returns:
- call instance
- Throws:
org.astrogrid.samp.xmlrpc.internal.XmlRpcFormatException
- if the document does not have the expected form
-