Package org.apache.sling.rewriter.impl
Class PipelineImpl
- java.lang.Object
-
- org.apache.sling.rewriter.impl.PipelineImpl
-
-
Constructor Summary
Constructors Constructor Description PipelineImpl(FactoryCache factoryCache)
Setup this pipeline.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finished(boolean errorOccured)
Clean up the processor.ContentHandler
getContentHandler()
Get the content handler to write the output to.PrintWriter
getWriter()
Get the writer to write the output to.void
init(ProcessingContext processingContext, ProcessorConfiguration c)
Initialize this component.String
toString()
-
-
-
Constructor Detail
-
PipelineImpl
public PipelineImpl(FactoryCache factoryCache)
Setup this pipeline.
-
-
Method Detail
-
init
public void init(ProcessingContext processingContext, ProcessorConfiguration c) throws IOException
Description copied from interface:Processor
Initialize this component.- Specified by:
init
in interfaceProcessor
- Parameters:
processingContext
- The invocation context.c
- The configuration for this component.- Throws:
IOException
- If an error occurs- See Also:
Processor.init(org.apache.sling.rewriter.ProcessingContext, org.apache.sling.rewriter.ProcessorConfiguration)
-
getWriter
public PrintWriter getWriter()
Description copied from interface:Processor
Get the writer to write the output to.- Specified by:
getWriter
in interfaceProcessor
- Returns:
- A print writer.
- See Also:
Processor.getWriter()
-
getContentHandler
public ContentHandler getContentHandler()
Description copied from interface:Processor
Get the content handler to write the output to.- Specified by:
getContentHandler
in interfaceProcessor
- Returns:
- A content handler
- See Also:
Processor.getContentHandler()
-
finished
public void finished(boolean errorOccured) throws IOException
Description copied from interface:Processor
Clean up the processor. This method should always be called after a processor run, regardless if it was successful or failed.- Specified by:
finished
in interfaceProcessor
- Parameters:
errorOccured
- Indicates if an error occurred during processing- Throws:
IOException
- See Also:
Processor.finished(boolean)
-
-