Package org.igniterealtime.jbosh
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BodyParserResults
parse(java.lang.String xml)
Parses the XML message, extracting the useful data from the initial body element and returning it in a results object.
-
-
-
Method Detail
-
parse
BodyParserResults parse(java.lang.String xml) throws BOSHException
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
-
-