Class XmlRpcContentHandler


  • public class XmlRpcContentHandler
    extends ContentHandler
    Methods here are called by the XML parser used in XmlRpcClient
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean faultOccured
      Tells if a fault occurred during the parsing
      java.lang.Object result
      Gets the object unmarshalled from the last XML-RPC response parsing
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void characters​(java.lang.String chars)
      Receive notification of character data.
      void endElement​(int tag)
      Receive notification of the end of an element.
      void startElement​(int tag, AttributeList atts)
      Receive notification of the beginning of an element.
      • Methods inherited from class java.lang.Object

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

      • result

        public java.lang.Object result
        Gets the object unmarshalled from the last XML-RPC response parsing
      • faultOccured

        public boolean faultOccured
        Tells if a fault occurred during the parsing
    • Constructor Detail

      • XmlRpcContentHandler

        public XmlRpcContentHandler()
    • Method Detail

      • characters

        public void characters​(java.lang.String chars)
        Description copied from class: ContentHandler
        Receive notification of character data.

        The XMLReader will call this method to report each chunk of character data. This XMLReader implementation return all contiguous character data in a single chunk.

        Specified by:
        characters in class ContentHandler
        Parameters:
        chars - The string of characters from the XML document.
      • endElement

        public void endElement​(int tag)
        Description copied from class: ContentHandler
        Receive notification of the end of an element.

        The XMLReader will invoke this method at the end of every element in the XML document; there will be a corresponding startElement event for every endElement event (even when the element is empty).

        Specified by:
        endElement in class ContentHandler
        Parameters:
        tag - tag identifier for this element
      • startElement

        public void startElement​(int tag,
                                 AttributeList atts)
        Description copied from class: ContentHandler
        Receive notification of the beginning of an element.

        The XmlReader will invoke this method at the beginning of every element in the XML document; there will be a corresponding endElement event for every startElement event (even when the element is empty). All of the element's content will be reported, in order, before the corresponding endElement event.

        Specified by:
        startElement in class ContentHandler
        Parameters:
        tag - tag identifier for this element
        atts - The attributes list attached to the element.