Class HttpSessionEvent

java.lang.Object
java.util.EventObject
jakarta.servlet.http.HttpSessionEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HttpSessionBindingEvent

public class HttpSessionEvent extends EventObject
This is the class representing event notifications for changes to sessions within a web application.
Since:
Servlet 2.3
See Also:
  • Constructor Details

    • HttpSessionEvent

      public HttpSessionEvent(HttpSession source)
      Construct a session event from the given source.
      Parameters:
      source - The HTTP session where the change took place
  • Method Details

    • getSession

      public HttpSession getSession()
      Get the session that changed.
      Returns:
      The session that changed