Package io.hawt.web.auth
Class SessionExpiryFilter
- java.lang.Object
-
- io.hawt.web.auth.SessionExpiryFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class SessionExpiryFilter extends java.lang.Object implements javax.servlet.FilterIf 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.StringATTRIBUTE_LAST_ACCESSstatic java.lang.StringSERVLET_PATHHawtio system property: The name of the servlet context attribute holding hawtio deployment path relative to the context root.
-
Constructor Summary
Constructors Constructor Description SessionExpiryFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voiddoFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain)voidinit(javax.servlet.FilterConfig filterConfig)
-
-
-
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
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.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:
doFilterin interfacejavax.servlet.Filter- Throws:
java.io.IOExceptionjavax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroyin interfacejavax.servlet.Filter
-
-