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
public class ExtractionResultsDownloadGenerator extends AbstractGenerator
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
Constructors Constructor Description ExtractionResultsDownloadGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<String>
_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 Detail
-
ExtractionResultsDownloadGenerator
public ExtractionResultsDownloadGenerator()
-
-
Method Detail
-
generate
public void generate() throws IOException, SAXException, ProcessingException
-
_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
-
-