Class RouteCoverageXmlParser


  • public final class RouteCoverageXmlParser
    extends Object
    An XML parser that uses SAX to enrich route stats in the route dump.

    The coverage details:

    • exchangesTotal - Total number of exchanges
    • totalProcessingTime - Total processing time in millis
    Is included as attributes on the route nodes.
    • Method Detail

      • parseXml

        public static Document parseXml​(org.apache.camel.CamelContext camelContext,
                                        InputStream is)
                                 throws Exception
        Parses the XML.
        Parameters:
        camelContext - the CamelContext
        is - the XML content as an input stream
        Returns:
        the DOM model of the routes with coverage information stored as attributes
        Throws:
        Exception - is thrown if error parsing