T - the type of CustomContextpublic interface Pipeline<T extends CustomContext>
| Modifier and Type | Method and Description |
|---|---|
Pipeline<?> |
close(WorkerContext context,
Tag t,
ProcessObject po)
Called when a closing tag has been encountered.
|
Pipeline<?> |
content(WorkerContext context,
Tag t,
String content,
ProcessObject po)
Called when content has been encountered.
|
Pipeline<?> |
getNext()
Returns the next pipeline in line.
|
Pipeline<?> |
init(WorkerContext context)
The init method allows implementation to initialize the pipeline.
|
Pipeline<?> |
open(WorkerContext context,
Tag t,
ProcessObject po)
Called when an opening tag has been encountered.
|
Pipeline<?> init(WorkerContext context) throws PipelineException
WorkerContext.put(String, CustomContext).context - the WorkerContextPipelineException - can be thrown to indicate that something went wrong.Pipeline<?> open(WorkerContext context, Tag t, ProcessObject po) throws PipelineException
context - the WorkerContextt - the Tagpo - a processObject to put Writables inPipelineException - can be thrown to indicate that something went wrong.Pipeline<?> content(WorkerContext context, Tag t, String content, ProcessObject po) throws PipelineException
context - the WorkerContextt - the Tagcontent - the contentpo - a processObject to put Writables inPipelineException - can be thrown to indicate that something went wrong.Pipeline<?> close(WorkerContext context, Tag t, ProcessObject po) throws PipelineException
context - the WorkerContextt - the Tagpo - a processObject to put Writables inPipelineException - can be thrown to indicate that something went wrong.Pipeline<?> getNext()
Copyright © 2020. All rights reserved.