Package com.atlassian.bamboo.filter
Class SessionExpiryFilter
java.lang.Object
com.atlassian.bamboo.filter.SessionExpiryFilter
- All Implemented Interfaces:
javax.servlet.Filter
Check and extend user session last access time attribute. Last access time is updated for all requests
except requests which have
USER_ACTION_HEADER
header with "false" value or GET /rest/* .
Reads attribute LAST_ACCESS_TIME_ATTRIBUTE
and invalidates session if it should be expired.-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
USER_ACTION_HEADER
- See Also:
-
-
Constructor Details
-
SessionExpiryFilter
public SessionExpiryFilter()
-
-
Method Details
-
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
-