Package org.onosproject.alarm
Class XmlEventParser
- java.lang.Object
 - 
- org.onosproject.alarm.XmlEventParser
 
 
- 
public final class XmlEventParser extends Object
Parser for Netconf notifications. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Loggerlog 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocumentcreateDocFromMessage(InputStream message)Creates a document from the input stream message and returns the result.static NodegetDescriptionNode(Document doc)static longgetEventTime(String dateTime)static longgetEventTime(Document doc) 
 - 
 
- 
- 
Method Detail
- 
createDocFromMessage
public static Document createDocFromMessage(InputStream message) throws SAXException, IOException, ParserConfigurationException
Creates a document from the input stream message and returns the result.- Parameters:
 message- input stream message- Returns:
 - the document result
 - Throws:
 SAXException- Throws SAX ExceptionIOException- Throws IO ExceptionParserConfigurationException- Throws ParserConfigurationException
 
- 
getEventTime
public static long getEventTime(String dateTime) throws UnsupportedOperationException, IllegalArgumentException
 
- 
getEventTime
public static long getEventTime(Document doc) throws UnsupportedOperationException, IllegalArgumentException
 
 - 
 
 -