Class XmlRpcClient


  • public class XmlRpcClient
    extends XmlReader
    Handles XML-RPCs to a server. This object cannot be reused.
    • Method Detail

      • execute

        public java.lang.Object execute​(java.lang.String method,
                                        Vector params)
                                 throws XmlRpcException,
                                        IOException
        Generates an XML-RPC request and sends it to the server. Parses the result and returns the corresponding Java object.
        Parameters:
        method - The remote procedure to call
        params - The parameters to the corresponding method
        Throws:
        XmlRpcException - If the remote procedure call was unsuccessful
        IOException
      • getTagCode

        protected int getTagCode​(byte[] b,
                                 int offset,
                                 int count)
        Description copied from class: XmlReader
        Method to compute the tag code identifying a tag name.

        This is the value which is passed to ContentHandler's for reporting a tag name.  Derived class may override it. Impl Note: Transforming to uppercase takes into account that the bytes are in the range [0-9A-Za-z]: (ch >= 'a') means "ch is a lower case letter". Also, we *do* know that the count is > 0.

        Overrides:
        getTagCode in class XmlReader
        Parameters:
        b - byte array containing the bytes to be hashed
        offset - position of the first byte in the array
        count - number of bytes to be hashed
        Returns:
        the corresponding hash code
      • writeObject

        protected void writeObject​(java.lang.Object what)
        Writes the XML representation of a supported Java object to the XML writer.
        Parameters:
        what - The object to write