Class AbstractJsonCollectionHandler

    • Constructor Detail

      • AbstractJsonCollectionHandler

        public AbstractJsonCollectionHandler()
    • Method Detail

      • fillCollectionSet

        protected void fillCollectionSet​(CollectionAgent agent,
                                         CollectionSetBuilder builder,
                                         XmlSource source,
                                         net.sf.json.JSONObject json)
                                  throws java.text.ParseException
        Fill collection set.
        Parameters:
        agent - the agent
        collectionSet - the collection set
        source - the source
        json - the JSON Object
        Throws:
        java.text.ParseException - the parse exception
      • getTimeStamp

        protected java.util.Date getTimeStamp​(org.apache.commons.jxpath.JXPathContext context,
                                              XmlGroup group)
        Gets the time stamp.
        Parameters:
        context - the JXPath context
        group - the group
        Returns:
        the time stamp
      • getJSONObject

        protected net.sf.json.JSONObject getJSONObject​(java.lang.String urlString,
                                                       Request request)
                                                throws java.lang.Exception
        Gets the JSON object.
        Parameters:
        urlString - the URL string
        request - the request
        Returns:
        the JSON object
        Throws:
        java.lang.Exception - the exception
      • wrapArray

        protected static net.sf.json.JSONObject wrapArray​(net.sf.json.JSON json)