All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.servlet.http.HttpSessionBindingEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----javax.servlet.http.HttpSessionBindingEvent

public class HttpSessionBindingEvent
extends EventObject
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.

Version:
Servlet API 2.0
See Also:
HttpSession, putValue, removeValue, invalidate, HttpSessionBindingListener

Constructor Index

 o HttpSessionBindingEvent(HttpSession, String)
Creates a new HttpSessionBindingEvent given the session and the name used.

Method Index

 o getName()
Returns the name used to refer to this Object.
 o getSession()
Returns the session the Object was bound to or unbound from.

Constructors

 o HttpSessionBindingEvent
 public HttpSessionBindingEvent(HttpSession session,
                                String name)
Creates a new HttpSessionBindingEvent given the session and the name used.

Parameters:
session - which the Object was bound to or unbound from
name - which was used to refer to the object

Methods

 o getName
 public String getName()
Returns the name used to refer to this Object.

 o getSession
 public HttpSession getSession()
Returns the session the Object was bound to or unbound from.


All Packages  Class Hierarchy  This Package  Previous  Next  Index