Class SessionExpiryFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class SessionExpiryFilter
    extends java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ATTRIBUTE_LAST_ACCESS  
      static java.lang.String SERVLET_PATH
      Hawtio system property: The name of the servlet context attribute holding hawtio deployment path relative to the context root.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()  
      void doFilter​(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain)  
      void init​(javax.servlet.FilterConfig filterConfig)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SERVLET_PATH

        public static final java.lang.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
      • ATTRIBUTE_LAST_ACCESS

        public static final java.lang.String ATTRIBUTE_LAST_ACCESS
        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 java.io.IOException,
                             javax.servlet.ServletException
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • destroy

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