public class WorkerContextImpl extends Object implements WorkerContext
MapContext but overrides the MapContext methods to throw
NotImplementedException.| Constructor and Description |
|---|
WorkerContextImpl() |
| Modifier and Type | Method and Description |
|---|---|
CustomContext |
get(String klass) |
Tag |
getCurrentTag() |
void |
put(String key,
CustomContext context)
Convenience method.
|
void |
setCurrentTag(Tag t)
Contains the current tag.
|
public CustomContext get(String klass) throws NoCustomContextException
get in interface WorkerContextklass - the key to find the custom context for. (internally
itextpdf.com uses the pipelines fully qualified klassName, so
when you want to use our pipelines twice in the same 'line'
you have to override it to change the key used)NoCustomContextException - if no CustomContext is found.public void put(String key, CustomContext context)
put in interface WorkerContextkey - the key to store the CustomContext for.context - the CustomContext to store.public void setCurrentTag(Tag t)
WorkerContextsetCurrentTag in interface WorkerContextt - the Tagpublic Tag getCurrentTag()
getCurrentTag in interface WorkerContextCopyright © 2020. All rights reserved.