Constructor and Description |
---|
ProcessorWrapper(ProcessorConfiguration config,
FactoryCache factoryCache) |
Modifier and Type | Method and 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() |
public ProcessorWrapper(ProcessorConfiguration config, FactoryCache factoryCache) throws IOException
IOException
public void finished(boolean errorOccured) throws IOException
Processor
finished
in interface Processor
errorOccured
- Indicates if an error occured during processingIOException
Processor.finished(boolean)
public PrintWriter getWriter()
Processor
getWriter
in interface Processor
Processor.getWriter()
public ContentHandler getContentHandler()
Processor
getContentHandler
in interface Processor
Processor.getContentHandler()
public void init(ProcessingContext context, ProcessorConfiguration config) throws IOException
Processor
init
in interface Processor
context
- The invocation context.config
- The configuration for this component.IOException
- If an error occursProcessor.init(org.apache.sling.rewriter.ProcessingContext, org.apache.sling.rewriter.ProcessorConfiguration)
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.