Interface ThreadContext
- All Known Subinterfaces:
ThreadContextService
- All Known Implementing Classes:
DefaultThreadContext,DefaultThreadContextService
public interface ThreadContext
ThreadContext interface. Supports storing attribute values.
-
Method Summary
Modifier and TypeMethodDescription<T> TgetAttribute(String name) Returns for the given session attribute name the valuevoidremoveAttribute(String name) Removes the given attribute from the current session.voidsetAttribute(String name, Object value) Sets the given value Object to the Session as attribute with the given name
-
Method Details
-
setAttribute
Sets the given value Object to the Session as attribute with the given name- Parameters:
name- the name of the attributevalue- the value to be set
-
getAttribute
Returns for the given session attribute name the value- Parameters:
name- the attribute name- Returns:
nullif no attribute with the given name is stored in the session
-
removeAttribute
Removes the given attribute from the current session. Do nothing if the attribute doesn't exists in the session.- Parameters:
name- the attribute name
-