Class SessionExpiryFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class SessionExpiryFilter
    extends Object
    implements javax.servlet.Filter
    If the user has a session, this will ensure it will expire if the user hasn't clicked on any links within the session expiry period
    • Field Detail

      • SERVLET_PATH

        public static final String SERVLET_PATH
        Hawtio system property: The name of the servlet context attribute holding hawtio deployment path relative to the context root. By default, when hawtio is launched in stand-alone mode, its path is assumed to be at the root of the servlet. But in certain scenarios this might not be the case. For example, when running under Spring Boot, actual hawtio path can potentially consist of servlet prefix, management context path as well as hawtio endpoint path.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SessionExpiryFilter

        public SessionExpiryFilter()
    • Method Detail

      • 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 servletRequest,
                             javax.servlet.ServletResponse servletResponse,
                             javax.servlet.FilterChain filterChain)
                      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