@WebListener public class SessionListener extends Object implements ServletContextListener, HttpSessionListener, ServletRequestListener
HttpSession
s.Modifier and Type | Field and Description |
---|---|
static String |
DATE_PATTERN |
static String |
SESSIONS |
Constructor and Description |
---|
SessionListener() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(ServletContextEvent sce) |
void |
contextInitialized(ServletContextEvent sce) |
protected static boolean |
destroySession(String sessionId,
Environment env) |
void |
requestDestroyed(ServletRequestEvent sre) |
void |
requestInitialized(ServletRequestEvent sre) |
void |
sessionCreated(HttpSessionEvent event) |
void |
sessionDestroyed(HttpSessionEvent event) |
protected void |
setDiagnosticContext(Environment env,
HttpServletRequest httpServletRequest,
Site site) |
protected void |
setSecureFlag(HttpServletRequest httpServletRequest,
Site site) |
public static final String SESSIONS
public static final String DATE_PATTERN
public void contextInitialized(ServletContextEvent sce)
contextInitialized
in interface ServletContextListener
public void contextDestroyed(ServletContextEvent sce)
contextDestroyed
in interface ServletContextListener
public void sessionCreated(HttpSessionEvent event)
sessionCreated
in interface HttpSessionListener
public void sessionDestroyed(HttpSessionEvent event)
sessionDestroyed
in interface HttpSessionListener
protected static boolean destroySession(String sessionId, Environment env)
public void requestInitialized(ServletRequestEvent sre)
requestInitialized
in interface ServletRequestListener
protected void setDiagnosticContext(Environment env, HttpServletRequest httpServletRequest, Site site)
protected void setSecureFlag(HttpServletRequest httpServletRequest, Site site)
public void requestDestroyed(ServletRequestEvent sre)
requestDestroyed
in interface ServletRequestListener
Copyright © 2011–2017 aiticon GmbH. All rights reserved.