Class SessionExpiryFilter

java.lang.Object
io.hawt.web.auth.SessionExpiryFilter
All Implemented Interfaces:
jakarta.servlet.Filter

public class SessionExpiryFilter extends Object implements jakarta.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 final String
     
    static final String
    Hawtio system property: The name of the servlet context attribute holding hawtio deployment path relative to the context root.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    doFilter(jakarta.servlet.ServletRequest servletRequest, jakarta.servlet.ServletResponse servletResponse, jakarta.servlet.FilterChain filterChain)
     
    void
    init(jakarta.servlet.FilterConfig filterConfig)
     

    Methods inherited from class java.lang.Object

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

    • 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:
    • ATTRIBUTE_LAST_ACCESS

      public static final String ATTRIBUTE_LAST_ACCESS
      See Also:
  • Constructor Details

    • SessionExpiryFilter

      public SessionExpiryFilter()
  • Method Details

    • init

      public void init(jakarta.servlet.FilterConfig filterConfig) throws jakarta.servlet.ServletException
      Specified by:
      init in interface jakarta.servlet.Filter
      Throws:
      jakarta.servlet.ServletException
    • doFilter

      public void doFilter(jakarta.servlet.ServletRequest servletRequest, jakarta.servlet.ServletResponse servletResponse, jakarta.servlet.FilterChain filterChain) throws IOException, jakarta.servlet.ServletException
      Specified by:
      doFilter in interface jakarta.servlet.Filter
      Throws:
      IOException
      jakarta.servlet.ServletException
    • destroy

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