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, sourceFields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_resultFileSourceToSAX(FileSource resultSource, String parentPath, Set<String> alreadySaxedPaths) Generate SAX events for the given result file sourcevoidgenerate()Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setupMethods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandlerMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-