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 have SessionUtils.USER_ACTION_HEADER header with "false" value or GET /rest/* . * Reads attribute LAST_ACCESS_TIME_ATTRIBUTE and invalidates session if it should be expired.
  • Constructor Details

    • SessionExpiryFilter

      public SessionExpiryFilter()
  • Method Details

    • init

      public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
      Specified by:
      init in interface javax.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 interface javax.servlet.Filter
      Throws:
      IOException
      javax.servlet.ServletException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface javax.servlet.Filter