Package org.openbravo.utils
Class SessionExpirationFilter
- java.lang.Object
-
- org.openbravo.utils.SessionExpirationFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class SessionExpirationFilter extends Object implements javax.servlet.Filter
Servlet filter that handles session expiration. There are requests such as alert ping that should not be taken into account as active request to prevent session expiration, that's why we cannot rely on Tomcat's default mechanism. This filter takes them into account to reset expiration time accordingly.
-
-
Constructor Summary
Constructors Constructor Description SessionExpirationFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp, javax.servlet.FilterChain chain)
void
init(javax.servlet.FilterConfig config)
-
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig config)
- Specified by:
init
in interfacejavax.servlet.Filter
-
doFilter
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
- Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
-
-