public class SessionExpiryFilter extends Object implements javax.servlet.Filter
USER_ACTION_HEADER
header with "false" value or GET /rest/* .
Reads attribute LAST_ACCESS_TIME_ATTRIBUTE
and invalidates session if it should be expired.Modifier and Type | Field and Description |
---|---|
static String |
USER_ACTION_HEADER |
Constructor and Description |
---|
SessionExpiryFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
void |
init(javax.servlet.FilterConfig filterConfig) |
public static final String USER_ACTION_HEADER
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.