Package io.hawt.web.auth
Class SessionExpiryFilter
java.lang.Object
io.hawt.web.auth.SessionExpiryFilter
- All Implemented Interfaces:
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 Details
-
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
- See Also:
-
-
Constructor Details
-
SessionExpiryFilter
public SessionExpiryFilter()
-
-
Method Details
-
init
public void init(jakarta.servlet.FilterConfig filterConfig) throws jakarta.servlet.ServletException - Specified by:
initin interfacejakarta.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:
doFilterin interfacejakarta.servlet.Filter- Throws:
IOExceptionjakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfacejakarta.servlet.Filter
-