Package org.onosproject.alarm
Class XmlEventParser
- java.lang.Object
-
- org.onosproject.alarm.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)
-
-
-
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 Exceptionjava.io.IOException
- Throws IO Exceptionjavax.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)
-
-