Class CrowdThreadLocalStateAccessor
java.lang.Object
com.atlassian.crowd.manager.threadlocal.CrowdThreadLocalStateAccessor
- All Implemented Interfaces:
ThreadLocalStateAccessor
Provide access to the state of the application thread locals.
Currently handles:
- Spring Security SecurityContext
- WebWorks ActionContext
- the current HTTP request and response
- Since:
- v2.7
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear the all the thread locals for the current thread.getState()
Return the state of all the thread locals for the current thread.void
setState
(ThreadLocalState state) Set the thread locals of the current thread with the values contained in the supplied state.
-
Constructor Details
-
CrowdThreadLocalStateAccessor
public CrowdThreadLocalStateAccessor()
-
-
Method Details
-
getState
Description copied from interface:ThreadLocalStateAccessor
Return the state of all the thread locals for the current thread.- Specified by:
getState
in interfaceThreadLocalStateAccessor
- Returns:
- a
ThreadLocalState
-
setState
Description copied from interface:ThreadLocalStateAccessor
Set the thread locals of the current thread with the values contained in the supplied state.- Specified by:
setState
in interfaceThreadLocalStateAccessor
- Parameters:
state
- aThreadLocalState
-
clearState
public void clearState()Description copied from interface:ThreadLocalStateAccessor
Clear the all the thread locals for the current thread.- Specified by:
clearState
in interfaceThreadLocalStateAccessor
-