Interface BodyParser

All Known Implementing Classes:
BodyParserSAX, BodyParserXmlPull

interface BodyParser
Interface for parser implementations to implement in order to abstract the business of XML parsing out of the Body class. This allows us to leverage a variety of parser implementations to gain performance advantages.
  • Method Summary

    Modifier and Type
    Method
    Description
    Parses the XML message, extracting the useful data from the initial body element and returning it in a results object.
  • Method Details

    • parse

      Parses the XML message, extracting the useful data from the initial body element and returning it in a results object.
      Parameters:
      xml - XML to parse
      Returns:
      useful data parsed out of the XML
      Throws:
      BOSHException - on parse error