HttpSessionEvent (Apache Tomcat 7.0.104 API Documentation)

javax.servlet.http

## Class HttpSessionEvent

- java.lang.Object
- - java.util.EventObject
  - - javax.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:
    v 2.3
  See Also:
    Serialized Form

- - ### Field Summary

    - ### Fields inherited from class java.util.EventObject

      `source`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `HttpSessionEvent(HttpSession source)` Construct a session event from the given source.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `HttpSession` | `getSession()` Get the session that changed.

    - ### Methods inherited from class java.util.EventObject

      `getSource, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### HttpSessionEvent

          public HttpSessionEvent(HttpSession source)

      Construct a session event from the given source.
      Parameters:
        `source` - The HTTP session where the change took place

  - ### Method Detail

    - #### getSession

          public HttpSession getSession()

      Get the session that changed.
      Returns:
        The session that changed

Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.