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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClear the all the thread locals for the current thread.getState()Return the state of all the thread locals for the current thread.voidsetState(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:ThreadLocalStateAccessorReturn the state of all the thread locals for the current thread.- Specified by:
getStatein interfaceThreadLocalStateAccessor- Returns:
- a
ThreadLocalState
-
setState
Description copied from interface:ThreadLocalStateAccessorSet the thread locals of the current thread with the values contained in the supplied state.- Specified by:
setStatein interfaceThreadLocalStateAccessor- Parameters:
state- aThreadLocalState
-
clearState
public void clearState()Description copied from interface:ThreadLocalStateAccessorClear the all the thread locals for the current thread.- Specified by:
clearStatein interfaceThreadLocalStateAccessor
-