public class

UserThreadLocalFilter

extends AbstractHttpFilter
java.lang.Object
   ↳ com.atlassian.core.filters.AbstractHttpFilter
     ↳ com.atlassian.confluence.util.UserThreadLocalFilter

Class Overview

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.

Summary

Fields
protected Supplier<UserAccessor> userAccessor
Public Constructors
UserThreadLocalFilter()
Public Methods
void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
Protected Methods
UserAccessor getUserAccessor()
[Expand]
Inherited Methods
From class com.atlassian.core.filters.AbstractHttpFilter
From class java.lang.Object
From interface javax.servlet.Filter

Fields

protected Supplier<UserAccessor> userAccessor

Public Constructors

public UserThreadLocalFilter ()

Public Methods

public void doFilter (HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)

Throws
IOException
ServletException

Protected Methods

protected UserAccessor getUserAccessor ()