Class ThreadContext
- java.lang.Object
-
- org.apache.manifoldcf.core.threadcontext.ThreadContext
-
- All Implemented Interfaces:
IThreadContext
public class ThreadContext extends java.lang.Object implements IThreadContext
Thread context implementation
-
-
Constructor Summary
Constructors Constructor Description ThreadContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectget(java.lang.Object key)Retrieve a named object from the context.voidsave(java.lang.Object key, java.lang.Object object)Set a named object into the context.
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
hashtable
protected java.util.Hashtable hashtable
-
-
Method Detail
-
save
public void save(java.lang.Object key, java.lang.Object object)Set a named object into the context.- Specified by:
savein interfaceIThreadContext- Parameters:
key- is the name of the object (usually a string)object- is the object to save, or null if the object is to be destroyed instead.
-
get
public java.lang.Object get(java.lang.Object key)
Retrieve a named object from the context. Use an equivalent key to retrieve what was previously saved. If no such object exists, null will be returned.- Specified by:
getin interfaceIThreadContext- Parameters:
key- is the object's key (usually a string)- Returns:
- the object, or null.
-
-