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 XmlRpcCallcreateCall(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 ofmethodNameelementparams- SAMP-friendly list of parameters as contained in theparamselement
-
-
Method Details
-
getMethodName
Returns the method name.- Returns:
- content of
methodNameelement
-
getParams
Returns the parameter list.- Returns:
- SAMP-friendly list of parameter values from
paramselement
-
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-RPCmethodCallelement- Returns:
- call instance
- Throws:
org.astrogrid.samp.xmlrpc.internal.XmlRpcFormatException- if the document does not have the expected form
-