Package org.apache.sling.rewriter.impl
Class ProcessorWrapper
- java.lang.Object
-
- org.apache.sling.rewriter.impl.ProcessorWrapper
-
-
Constructor Summary
Constructors Constructor Description ProcessorWrapper(ProcessorConfiguration config, FactoryCache factoryCache)
-
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 context, ProcessorConfiguration config)Initialize this component.StringtoString()
-
-
-
Constructor Detail
-
ProcessorWrapper
public ProcessorWrapper(ProcessorConfiguration config, FactoryCache factoryCache) throws IOException
- Throws:
IOException
-
-
Method Detail
-
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)
-
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()
-
init
public void init(ProcessingContext context, ProcessorConfiguration config) throws IOException
Description copied from interface:ProcessorInitialize this component.- Specified by:
initin interfaceProcessor- Parameters:
context- The invocation context.config- 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)
-
-