Package com.atlassian.bamboo.filter
Class SessionExpiryFilter
- java.lang.Object
-
- com.atlassian.bamboo.filter.SessionExpiryFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class SessionExpiryFilter extends Object implements javax.servlet.Filter
Check and extend user session last access time attribute. Last access time is updated for all requests except requests which haveUSER_ACTION_HEADER
header with "false" value or GET /rest/* . Reads attributeLAST_ACCESS_TIME_ATTRIBUTE
and invalidates session if it should be expired.
-
-
Field Summary
Fields Modifier and Type Field Description static String
USER_ACTION_HEADER
-
Constructor Summary
Constructors Constructor Description SessionExpiryFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
void
init(javax.servlet.FilterConfig filterConfig)
-
-
-
Field Detail
-
USER_ACTION_HEADER
public static final String USER_ACTION_HEADER
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
doFilter
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
- Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
-
-