Class ExtractionReader
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.reading.AbstractReader
-
- org.apache.cocoon.reading.ServiceableReader
-
- org.ametys.plugins.extraction.execution.ExtractionReader
-
- All Implemented Interfaces:
Poolable,Recyclable,Component,LogEnabled,Serviceable,Reader,SitemapModelComponent,SitemapOutputComponent
public class ExtractionReader extends ServiceableReader
Reader for copying the extraction result into the pipelineOutputStream
-
-
Field Summary
Fields Modifier and Type Field Description private static String__DEFINITION_FILE_PARAMETERprivate static String__LANG_PARAMETERprivate static String__PIPELINE_PARAMETERprivate ExtractionExecutor_extractionExecutorprivate PipelineManager_pipelineManager-
Fields inherited from class org.apache.cocoon.reading.ServiceableReader
manager
-
Fields inherited from class org.apache.cocoon.reading.AbstractReader
objectModel, out, parameters, resolver, source
-
-
Constructor Summary
Constructors Constructor Description ExtractionReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static Map<String,Object>_getParams(Request request)private PipelineDescriptor_getPipeline(Request request)voidgenerate()voidservice(ServiceManager smanager)-
Methods inherited from class org.apache.cocoon.reading.AbstractReader
getLastModified, getMimeType, recycle, setOutputStream, setup, shouldSetContentLength
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
__PIPELINE_PARAMETER
private static final String __PIPELINE_PARAMETER
- See Also:
- Constant Field Values
-
__LANG_PARAMETER
private static final String __LANG_PARAMETER
- See Also:
- Constant Field Values
-
__DEFINITION_FILE_PARAMETER
private static final String __DEFINITION_FILE_PARAMETER
- See Also:
- Constant Field Values
-
_pipelineManager
private PipelineManager _pipelineManager
-
_extractionExecutor
private ExtractionExecutor _extractionExecutor
-
-
Constructor Detail
-
ExtractionReader
public ExtractionReader()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classServiceableReader- Throws:
ServiceException
-
generate
public void generate() throws IOException, SAXException, ProcessingException
-
_getPipeline
private PipelineDescriptor _getPipeline(Request request) throws IOException
- Throws:
IOException
-
_getParams
private static Map<String,Object> _getParams(Request request)
-
-