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 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 context, ProcessorConfiguration config)
Initialize this component.String
toString()
-
-
-
Constructor Detail
-
ProcessorWrapper
public ProcessorWrapper(ProcessorConfiguration config, FactoryCache factoryCache) throws IOException
- Throws:
IOException
-
-
Method Detail
-
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)
-
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()
-
init
public void init(ProcessingContext context, ProcessorConfiguration config) throws IOException
Description copied from interface:Processor
Initialize this component.- Specified by:
init
in 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)
-
-