Package com.sun.enterprise.iiop.security
Class ConnectionExecutionContext
- java.lang.Object
-
- com.sun.enterprise.iiop.security.ConnectionExecutionContext
-
public class ConnectionExecutionContext extends Object
This class that implements ConnectionExecutionContext that gets stored in Thread Local Storage. If the current thread creates child threads, the context info that is stored in the current thread is automatically propagated to the child threads. Two class methods serve as a convenient way to set/get the Context information within the current thread.- See Also:
ThreadLocal
,InheritableThreadLocal
-
-
Field Summary
Fields Modifier and Type Field Description static String
IIOP_CLIENT_PER_THREAD_FLAG
-
Constructor Summary
Constructors Constructor Description ConnectionExecutionContext()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Hashtable<String,Object>
getContext()
This method returns the hashtable that stores the thread specific Context information.static Long
readClientThreadID()
static void
removeClientThreadID()
static void
setClientThreadID(Long ClientThreadID)
static void
setContext(Hashtable<String,Object> ctxTable)
This method can be used to add a new hashtable for storing the Thread specific context information.
-
-
-
Field Detail
-
IIOP_CLIENT_PER_THREAD_FLAG
public static final String IIOP_CLIENT_PER_THREAD_FLAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
readClientThreadID
public static Long readClientThreadID()
-
setClientThreadID
public static void setClientThreadID(Long ClientThreadID)
-
removeClientThreadID
public static void removeClientThreadID()
-
setContext
public static void setContext(Hashtable<String,Object> ctxTable)
This method can be used to add a new hashtable for storing the Thread specific context information. This method is useful to add a deserialized Context information that arrived over the wire.- Parameters:
A
- hashtable that stores the current thread's context information.
-
-