public abstract class AbstractJsonCollectionHandler extends AbstractXmlCollectionHandler
All JsonCollectionHandler should extend this class.
| Constructor and Description | 
|---|
AbstractJsonCollectionHandler()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
fillCollectionSet(CollectionAgent agent,
                 CollectionSetBuilder builder,
                 XmlSource source,
                 net.sf.json.JSONObject json)
Fill collection set. 
 | 
protected net.sf.json.JSONObject | 
getJSONObject(String urlString,
             Request request)
Gets the JSON object. 
 | 
protected Date | 
getTimeStamp(org.apache.commons.jxpath.JXPathContext context,
            XmlGroup group)
Gets the time stamp. 
 | 
protected static net.sf.json.JSONObject | 
wrapArray(net.sf.json.JSON json)  | 
applyXsltTransformation, collect, fillCollectionSet, fillCollectionSet, getCollectionResource, getResourceStorageDao, getRrdRepository, getServiceName, getTimeStamp, getXmlDocument, getXmlDocument, parseRequest, parseString, parseUrl, preProcessHtml, processXmlResource, setResourceStorageDao, setRrdRepository, setServiceNameprotected void fillCollectionSet(CollectionAgent agent, CollectionSetBuilder builder, XmlSource source, net.sf.json.JSONObject json) throws ParseException
agent - the agentcollectionSet - the collection setsource - the sourcejson - the JSON ObjectParseException - the parse exceptionprotected Date getTimeStamp(org.apache.commons.jxpath.JXPathContext context, XmlGroup group)
context - the JXPath contextgroup - the groupprotected net.sf.json.JSONObject getJSONObject(String urlString, Request request) throws Exception
urlString - the URL stringrequest - the requestException - the exceptionprotected static net.sf.json.JSONObject wrapArray(net.sf.json.JSON json)
Copyright © 2020. All rights reserved.