Class DefaultJsonCollectionHandler
- java.lang.Object
-
- org.opennms.protocols.xml.collector.AbstractXmlCollectionHandler
-
- org.opennms.protocols.json.collector.AbstractJsonCollectionHandler
-
- org.opennms.protocols.json.collector.DefaultJsonCollectionHandler
-
- All Implemented Interfaces:
XmlCollectionHandler
public class DefaultJsonCollectionHandler extends AbstractJsonCollectionHandler
The default implementation of the interface XmlCollectionHandler based on AbstractJsonCollectionHandler.- Author:
- Ronald Roskens, Alejandro Galue
-
-
Constructor Summary
Constructors Constructor Description DefaultJsonCollectionHandler()
-
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 void
processXmlResource(CollectionSetBuilder builder, Resource collectionResource, java.lang.String resourceTypeName, java.lang.String group)
Process XML resource.-
Methods inherited from class org.opennms.protocols.json.collector.AbstractJsonCollectionHandler
fillCollectionSet, getJSONObject, getTimeStamp, wrapArray
-
Methods inherited from class org.opennms.protocols.xml.collector.AbstractXmlCollectionHandler
applyXsltTransformation, collect, fillCollectionSet, getBlobStore, getCollectionResource, getResourceStorageDao, getRrdRepository, getServiceName, getTimeStamp, getXmlDocument, getXmlDocument, parseRequest, parseString, parseUrl, preProcessHtml, setBlobStore, 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
-
-