Class XmlEventParser


  • public final class XmlEventParser
    extends java.lang.Object
    Parser for Netconf notifications.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger log  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.w3c.dom.Document createDocFromMessage​(java.io.InputStream message)
      Creates a document from the input stream message and returns the result.
      static org.w3c.dom.Node getDescriptionNode​(org.w3c.dom.Document doc)  
      static long getEventTime​(java.lang.String dateTime)  
      static long getEventTime​(org.w3c.dom.Document doc)  
      • Methods inherited from class java.lang.Object

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

      • log

        public static final org.slf4j.Logger log
    • Method Detail

      • createDocFromMessage

        public static org.w3c.dom.Document createDocFromMessage​(java.io.InputStream message)
                                                         throws org.xml.sax.SAXException,
                                                                java.io.IOException,
                                                                javax.xml.parsers.ParserConfigurationException
        Creates a document from the input stream message and returns the result.
        Parameters:
        message - input stream message
        Returns:
        the document result
        Throws:
        org.xml.sax.SAXException - Throws SAX Exception
        java.io.IOException - Throws IO Exception
        javax.xml.parsers.ParserConfigurationException - Throws ParserConfigurationException
      • getEventTime

        public static long getEventTime​(java.lang.String dateTime)
                                 throws java.lang.UnsupportedOperationException,
                                        java.lang.IllegalArgumentException
        Throws:
        java.lang.UnsupportedOperationException
        java.lang.IllegalArgumentException
      • getEventTime

        public static long getEventTime​(org.w3c.dom.Document doc)
                                 throws java.lang.UnsupportedOperationException,
                                        java.lang.IllegalArgumentException
        Throws:
        java.lang.UnsupportedOperationException
        java.lang.IllegalArgumentException
      • getDescriptionNode

        public static org.w3c.dom.Node getDescriptionNode​(org.w3c.dom.Document doc)