Class HttpSessionBindingEvent
java.lang.Object
java.util.EventObject
javax.servlet.http.HttpSessionBindingEvent
- All Implemented Interfaces:
Serializable
Send to an Object that implements
HttpSessionBindingListener
when bound into a session or unbound from a session. Gives access to the
session and the name used to bind the Object to the session.- Since:
- Servlet API 2.0
- Version:
- Servlet API 2.2
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionHttpSessionBindingEvent(HttpSession session, String name) Creates a newHttpSessionBindingEventgiven the session and the name used. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name used to refer to this Object.Returns the session the Object was bound to or unbound from.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
HttpSessionBindingEvent
Creates a newHttpSessionBindingEventgiven the session and the name used.- Parameters:
session- which the Object was bound to or unbound fromname- which was used to refer to the object- Since:
- Servlet API 2.0
-
-
Method Details
-
getName
-
getSession
Returns the session the Object was bound to or unbound from.- Since:
- Servlet API 2.0
-