com.sun.enterprise.iiop.security
Class ConnectionExecutionContext
java.lang.Object
com.sun.enterprise.iiop.security.ConnectionExecutionContext
public class ConnectionExecutionContext
- extends java.lang.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 propogated to the child threads.
Two class methods serve as a convinient way to set/get the
Context information within the current thread.
Thread Local Storage is a concept introduced in JDK1.2. So, it
will not work on earlier releases of JDK.
- See Also:
ThreadLocal,
InheritableThreadLocal
|
Method Summary |
static java.util.Hashtable |
getContext()
This method returns the hashtable that stores the thread specific
Context information. |
static java.lang.Long |
readClientThreadID()
|
static void |
removeClientThreadID()
|
static void |
setClientThreadID(java.lang.Long ClientThreadID)
|
static void |
setContext(java.util.Hashtable ctxTable)
This method can be used to add a new hashtable for storing the
Thread specific context information. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IIOP_CLIENT_PER_THREAD_FLAG
public static final java.lang.String IIOP_CLIENT_PER_THREAD_FLAG
- See Also:
- Constant Field Values
ConnectionExecutionContext
public ConnectionExecutionContext()
readClientThreadID
public static java.lang.Long readClientThreadID()
setClientThreadID
public static void setClientThreadID(java.lang.Long ClientThreadID)
removeClientThreadID
public static void removeClientThreadID()
setContext
public static void setContext(java.util.Hashtable 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.
getContext
public static java.util.Hashtable getContext()
- This method returns the hashtable that stores the thread specific
Context information.
- Returns:
- The Context object stored in the current TLS. It always
returns a non null value;
Copyright © 2012 GlassFish Community. All Rights Reserved.