Package org.opennms.protocols.xml.vtdxml
Class AbstractVTDXmlCollectionHandler
- java.lang.Object
-
- org.opennms.protocols.xml.collector.AbstractXmlCollectionHandler
-
- org.opennms.protocols.xml.vtdxml.AbstractVTDXmlCollectionHandler
-
- All Implemented Interfaces:
XmlCollectionHandler
- Direct Known Subclasses:
DefaultVTDXmlCollectionHandler
,Sftp3gppVTDXmlCollectionHandler
public abstract class AbstractVTDXmlCollectionHandler extends AbstractXmlCollectionHandler
The Abstract Class VTD-XML Collection Handler.All CollectionHandler based on VTD-XML should extend this class.
- Author:
- Ronald Roskens
-
-
Constructor Summary
Constructors Constructor Description AbstractVTDXmlCollectionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fillCollectionSet(CollectionAgent agent, CollectionSetBuilder builder, XmlSource source, com.ximpleware.VTDNav document)
Fill collection set.protected java.util.Date
getTimeStamp(com.ximpleware.VTDNav document, XmlGroup group)
Gets the time stamp.protected com.ximpleware.VTDNav
getVTDXmlDocument(java.io.InputStream is, Request request)
Gets the XML document.protected com.ximpleware.VTDNav
getVTDXmlDocument(java.lang.String urlString, Request request)
Gets the XML document.-
Methods inherited from class org.opennms.protocols.xml.collector.AbstractXmlCollectionHandler
applyXsltTransformation, collect, fillCollectionSet, fillCollectionSet, getBlobStore, getCollectionResource, getResourceStorageDao, getRrdRepository, getServiceName, getTimeStamp, getXmlDocument, getXmlDocument, parseRequest, parseString, parseUrl, preProcessHtml, processXmlResource, setBlobStore, setResourceStorageDao, setRrdRepository, setServiceName
-
-
-
-
Method Detail
-
fillCollectionSet
protected void fillCollectionSet(CollectionAgent agent, CollectionSetBuilder builder, XmlSource source, com.ximpleware.VTDNav document) throws java.text.ParseException, com.ximpleware.XPathParseException, com.ximpleware.XPathEvalException, com.ximpleware.NavException
Fill collection set.- Parameters:
agent
- the agentcollectionSet
- the collection setsource
- the sourcedocument
- the document- Throws:
java.text.ParseException
- the parse exceptioncom.ximpleware.XPathParseException
- the x-path parse exceptioncom.ximpleware.XPathEvalException
- the x-path evaluation exceptioncom.ximpleware.NavException
- the navigation exception
-
getTimeStamp
protected java.util.Date getTimeStamp(com.ximpleware.VTDNav document, XmlGroup group) throws com.ximpleware.XPathParseException
Gets the time stamp.- Parameters:
document
- the documentgroup
- the group- Returns:
- the time stamp
- Throws:
com.ximpleware.XPathParseException
- the x-path parse exception
-
getVTDXmlDocument
protected com.ximpleware.VTDNav getVTDXmlDocument(java.lang.String urlString, Request request) throws java.lang.Exception
Gets the XML document.- Parameters:
urlString
- the URL stringrequest
- the request- Returns:
- the XML document
- Throws:
java.lang.Exception
- the exception
-
getVTDXmlDocument
protected com.ximpleware.VTDNav getVTDXmlDocument(java.io.InputStream is, Request request) throws java.lang.Exception
Gets the XML document.- Parameters:
is
- the input streamrequest
- the request- Returns:
- the XML document
- Throws:
java.lang.Exception
- the exception
-
-