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 WorkerContext
klass
- 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 WorkerContext
key
- the key to store the CustomContext for.
context
- the CustomContext to store.
public void setCurrentTag(Tag t)
WorkerContext
setCurrentTag
in interface WorkerContext
t
- the Tag
public Tag getCurrentTag()
getCurrentTag
in interface WorkerContext
Copyright © 1998–2022. All rights reserved.