Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XmlRpcCall

        public XmlRpcCall​(java.lang.String methodName,
                          java.util.List params)
        Constructor.
        Parameters:
        methodName - content of methodName element
        params - SAMP-friendly list of parameters as contained in the params element
    • 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-RPC methodCall element
        Returns:
        call instance
        Throws:
        org.astrogrid.samp.xmlrpc.internal.XmlRpcFormatException - if the document does not have the expected form