Package com.jk.web.mvc
Class MvcSessionListener
java.lang.Object
com.jk.web.mvc.MvcSessionListener
- All Implemented Interfaces:
jakarta.servlet.http.HttpSessionListener
,EventListener
@WebListener
public class MvcSessionListener
extends Object
implements jakarta.servlet.http.HttpSessionListener
This class is a Servlet Session Listener that manages MVC-related session
events.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
sessionCreated
(jakarta.servlet.http.HttpSessionEvent arg) Receives notification that a session has been created.void
sessionDestroyed
(jakarta.servlet.http.HttpSessionEvent arg) Receives notification that a session is about to be invalidated.
-
Constructor Details
-
MvcSessionListener
public MvcSessionListener()
-
-
Method Details
-
sessionCreated
public void sessionCreated(jakarta.servlet.http.HttpSessionEvent arg) Receives notification that a session has been created.- Specified by:
sessionCreated
in interfacejakarta.servlet.http.HttpSessionListener
- Parameters:
arg
- the HttpSessionEvent containing the session
-
sessionDestroyed
public void sessionDestroyed(jakarta.servlet.http.HttpSessionEvent arg) Receives notification that a session is about to be invalidated.- Specified by:
sessionDestroyed
in interfacejakarta.servlet.http.HttpSessionListener
- Parameters:
arg
- the HttpSessionEvent containing the session
-