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 voidfinished(boolean errorOccured)Clean up the processor.ContentHandlergetContentHandler()Get the content handler to write the output to.PrintWritergetWriter()Get the writer to write the output to.voidinit(ProcessingContext processingContext, ProcessorConfiguration c)Initialize this component.StringtoString()
-
-
-
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:ProcessorInitialize this component.- Specified by:
initin 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:ProcessorGet the writer to write the output to.- Specified by:
getWriterin interfaceProcessor- Returns:
- A print writer.
- See Also:
Processor.getWriter()
-
getContentHandler
public ContentHandler getContentHandler()
Description copied from interface:ProcessorGet the content handler to write the output to.- Specified by:
getContentHandlerin interfaceProcessor- Returns:
- A content handler
- See Also:
Processor.getContentHandler()
-
finished
public void finished(boolean errorOccured) throws IOExceptionDescription copied from interface:ProcessorClean up the processor. This method should always be called after a processor run, regardless if it was successful or failed.- Specified by:
finishedin interfaceProcessor- Parameters:
errorOccured- Indicates if an error occurred during processing- Throws:
IOException- See Also:
Processor.finished(boolean)
-
-