Class HttpCollectionHandler
- java.lang.Object
-
- org.opennms.protocols.xml.collector.AbstractXmlCollectionHandler
-
- org.opennms.protocols.http.collector.HttpCollectionHandler
-
- All Implemented Interfaces:
XmlCollectionHandler
public class HttpCollectionHandler extends AbstractXmlCollectionHandler
The Class HTTP Collection Handler.- Author:
- Alejandro Galue
-
-
Constructor Summary
Constructors Constructor Description HttpCollectionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fillCollectionSet(java.lang.String urlString, Request request, CollectionAgent agent, CollectionSetBuilder builder, XmlSource source)
Fill collection set.protected org.jsoup.nodes.Document
getJsoupDocument(java.lang.String urlString, Request request)
Gets the JSoup document.protected java.util.Date
getTimeStamp(org.jsoup.nodes.Document doc, XmlGroup group)
Gets the time stamp.protected void
processXmlResource(CollectionSetBuilder builder, Resource collectionResource, java.lang.String resourceTypeName, java.lang.String group)
Process XML resource.-
Methods inherited from class org.opennms.protocols.xml.collector.AbstractXmlCollectionHandler
applyXsltTransformation, collect, fillCollectionSet, getCollectionResource, getResourceStorageDao, getRrdRepository, getServiceName, getTimeStamp, getXmlDocument, getXmlDocument, parseRequest, parseString, parseUrl, preProcessHtml, setResourceStorageDao, setRrdRepository, setServiceName
-
-
-
-
Method Detail
-
fillCollectionSet
protected void fillCollectionSet(java.lang.String urlString, Request request, CollectionAgent agent, CollectionSetBuilder builder, XmlSource source) throws java.lang.Exception
Description copied from class:AbstractXmlCollectionHandler
Fill collection set.- Specified by:
fillCollectionSet
in classAbstractXmlCollectionHandler
- Parameters:
urlString
- the URL stringrequest
- the requestagent
- the collection agentsource
- the XML source- Throws:
java.lang.Exception
- the exception
-
processXmlResource
protected void processXmlResource(CollectionSetBuilder builder, Resource collectionResource, java.lang.String resourceTypeName, java.lang.String group)
Description copied from class:AbstractXmlCollectionHandler
Process XML resource.- Specified by:
processXmlResource
in classAbstractXmlCollectionHandler
collectionResource
- the collection resource
-
getTimeStamp
protected java.util.Date getTimeStamp(org.jsoup.nodes.Document doc, XmlGroup group)
Gets the time stamp.- Parameters:
document
- the JSoup documentgroup
- the group- Returns:
- the time stamp
-
getJsoupDocument
protected org.jsoup.nodes.Document getJsoupDocument(java.lang.String urlString, Request request) throws java.lang.Exception
Gets the JSoup document.- Parameters:
urlString
- the URL stringrequest
- the request- Returns:
- the JSoup document
- Throws:
java.lang.Exception
- the exception
-
-