Package org.apache.sling.rewriter
Interface Processor
-
public interface ProcessorAProcessorpost processes the output.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfinished(boolean errorOccurred)Clean up the processor.org.xml.sax.ContentHandlergetContentHandler()Get the content handler to write the output to.java.io.PrintWritergetWriter()Get the writer to write the output to.voidinit(ProcessingContext context, ProcessorConfiguration config)Initialize this component.
-
-
-
Method Detail
-
init
void init(ProcessingContext context, ProcessorConfiguration config) throws java.io.IOException
Initialize this component.- Parameters:
context- The invocation context.config- The configuration for this component.- Throws:
java.io.IOException- If an error occurs
-
getWriter
java.io.PrintWriter getWriter()
Get the writer to write the output to.- Returns:
- A print writer.
-
getContentHandler
org.xml.sax.ContentHandler getContentHandler()
Get the content handler to write the output to.- Returns:
- A content handler
-
finished
void finished(boolean errorOccurred) throws java.io.IOExceptionClean up the processor. This method should always be called after a processor run, regardless if it was successful or failed.- Parameters:
errorOccurred- Indicates if an error occurred during processing- Throws:
java.io.IOException
-
-