Class XmlRpcCall
- java.lang.Object
-
- org.astrogrid.samp.xmlrpc.internal.XmlRpcCall
-
public class XmlRpcCall extends java.lang.Object
Represents the content of an XML-RPC methodCall element.- Since:
- 11 Mar 2016
- Author:
- Mark Taylor
- See Also:
- XML-RPC
-
-
Constructor Summary
Constructors Constructor Description XmlRpcCall(java.lang.String methodName, java.util.List params)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XmlRpcCall
createCall(org.w3c.dom.Document callDoc)
Constructs an XmlRpcCall instance from a document with a methodCall element at top level.java.lang.String
getMethodName()
Returns the method name.java.util.List
getParams()
Returns the parameter list.
-
-
-
Method Detail
-
getMethodName
public java.lang.String getMethodName()
Returns the method name.- Returns:
- content of
methodName
element
-
getParams
public java.util.List getParams()
Returns the parameter list.- Returns:
- SAMP-friendly list of parameter values from
params
element
-
createCall
public static XmlRpcCall createCall(org.w3c.dom.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
-
-