Package com.atlassian.confluence.util
Class UserThreadLocalFilter
- java.lang.Object
-
- com.atlassian.core.filters.AbstractHttpFilter
-
- com.atlassian.confluence.util.UserThreadLocalFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class UserThreadLocalFilter extends com.atlassian.core.filters.AbstractHttpFilter
Makes sure the current user is always in the AuthenticatedUserThreadLocal at the beginning of a request, and is cleared at the end.Obviously, this filter can only be run after Seraph gets its grubby little paws on the request.
-
-
Field Summary
Fields Modifier and Type Field Description protected com.atlassian.util.concurrent.Supplier<UserAccessor>
userAccessor
-
Constructor Summary
Constructors Constructor Description UserThreadLocalFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain)
protected UserAccessor
getUserAccessor()
-
-
-
Field Detail
-
userAccessor
protected com.atlassian.util.concurrent.Supplier<UserAccessor> userAccessor
-
-
Method Detail
-
doFilter
public void doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
- Specified by:
doFilter
in classcom.atlassian.core.filters.AbstractHttpFilter
- Throws:
IOException
javax.servlet.ServletException
-
getUserAccessor
protected UserAccessor getUserAccessor()
-
-