public class DefaultThreadContext extends java.lang.Object implements ThreadContext
| Constructor and Description |
|---|
DefaultThreadContext() |
DefaultThreadContext(ThreadContext parent) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getAttribute(java.lang.String name)
Returns for the given session attribute name the value
|
void |
removeAttribute(java.lang.String name)
Removes the given attribute from the current session.
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets the given value Object to the Session as attribute with the given name
|
public DefaultThreadContext()
public DefaultThreadContext(ThreadContext parent)
public void setAttribute(java.lang.String name,
java.lang.Object value)
ThreadContextsetAttribute in interface ThreadContextname - the name of the attributevalue - the value to be setpublic <T> T getAttribute(java.lang.String name)
ThreadContextgetAttribute in interface ThreadContextname - the attribute namenull if no attribute with the given name is stored in the sessionpublic void removeAttribute(java.lang.String name)
ThreadContextremoveAttribute in interface ThreadContextname - the attribute nameCopyright © 2018 SAP SE. All Rights Reserved.