WorkerContextpublic class WorkerContextImpl extends java.lang.Object implements WorkerContext
MapContext but overrides the MapContext methods to throw
NotImplementedException.| Constructor | Description |
|---|---|
WorkerContextImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
CustomContext |
get(java.lang.String klass) |
|
Tag |
getCurrentTag() |
|
void |
put(java.lang.String key,
CustomContext context) |
Convenience method.
|
void |
setCurrentTag(Tag t) |
Contains the current tag.
|
public CustomContext get(java.lang.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(java.lang.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 © 1998–2018. All rights reserved.