| 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
IOExceptionpublic void finished(boolean errorOccured)
throws IOException
Processorfinished in interface ProcessorerrorOccured - Indicates if an error occured during processingIOExceptionProcessor.finished(boolean)public PrintWriter getWriter()
ProcessorgetWriter in interface ProcessorProcessor.getWriter()public ContentHandler getContentHandler()
ProcessorgetContentHandler in interface ProcessorProcessor.getContentHandler()public void init(ProcessingContext context, ProcessorConfiguration config) throws IOException
Processorinit in interface Processorcontext - 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.