Package org.jivesoftware.admin
Class SessionListener
- java.lang.Object
-
- org.jivesoftware.admin.SessionListener
-
- All Implemented Interfaces:
EventListener
,javax.servlet.http.HttpSessionListener
@WebListener public class SessionListener extends Object implements javax.servlet.http.HttpSessionListener
A http session listener that implements a configurable session timeout.The session timeout is taken from the property
adminConsole.sessionTimeout
, the default is 30min.- Author:
- Guido Jaekel, guido.jaekel@gmx.de
-
-
Field Summary
Fields Modifier and Type Field Description static SystemProperty<Duration>
SESSION_TIMEOUT
-
Constructor Summary
Constructors Constructor Description SessionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sessionCreated(javax.servlet.http.HttpSessionEvent event)
void
sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
-
-
-
Field Detail
-
SESSION_TIMEOUT
public static final SystemProperty<Duration> SESSION_TIMEOUT
-
-
Method Detail
-
sessionCreated
public void sessionCreated(javax.servlet.http.HttpSessionEvent event)
- Specified by:
sessionCreated
in interfacejavax.servlet.http.HttpSessionListener
-
sessionDestroyed
public void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
- Specified by:
sessionDestroyed
in interfacejavax.servlet.http.HttpSessionListener
-
-