Class ExtractionResultsDownloadGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
org.ametys.plugins.extraction.execution.pipeline.ExtractionResultsDownloadGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Component
,LogEnabled
,Generator
,SitemapModelComponent
,XMLProducer
Generate the list of file to include in a zip for downloading results files
-
Field Summary
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription_resultFileSourceToSAX
(FileSource resultSource, String parentPath, Set<String> alreadySaxedPaths) Generate SAX events for the given result file sourcevoid
generate()
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setup
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
Constructor Details
-
ExtractionResultsDownloadGenerator
public ExtractionResultsDownloadGenerator()
-
-
Method Details
-
generate
-
_resultFileSourceToSAX
protected Set<String> _resultFileSourceToSAX(FileSource resultSource, String parentPath, Set<String> alreadySaxedPaths) throws SourceException, SAXException Generate SAX events for the given result file source- Parameters:
resultSource
- the result file sourceparentPath
- the path of the parent folderalreadySaxedPaths
- paths of the files that have already been saxed- Returns:
- The paths of the files that have been saxed
- Throws:
SourceException
- if an error occurs while traversing a collection sourceSAXException
- if an error occurs while generating SAX events
-