Class javax.servlet.http.HttpSessionBindingEvent
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.servlet.http.HttpSessionBindingEvent

Object
   |
   +----EventObject
           |
           +----javax.servlet.http.HttpSessionBindingEvent

public class HttpSessionBindingEvent
extends EventObject
This event is communicated to a HttpSessionBindingListener whenever the listener is bound to or unbound from a HttpSession value.

The event's source is the HttpSession: binding occurs with a call to HttpSession.putValue; unbinding occurs with a call to HttpSession.removeValue.

Version:
1.6, 10/15/97
See Also:
HttpSession, HttpSessionBindingListener

Constructor Index

 o javax.servlet.http.HttpSessionBindingEvent(HttpSession, String)
Constructs a new HttpSessionBindingEvent

Method Index

 o getName()
Returns the name to which the object is being bound or the name from which the object is being unbound.
 o getSession()
Returns the session into which the listener is being bound or from which the listener is being unbound.

Constructors

 o HttpSessionBindingEvent
public HttpSessionBindingEvent(HttpSession session,
                               String name)
Constructs a new HttpSessionBindingEvent

Parameters:
session - the session acting as the source of the event
name - the name to which the object is being bound or the name from which the object is being unbound

Methods

 o getName
public java.lang.String getName()
Returns the name to which the object is being bound or the name from which the object is being unbound.

 o getSession
public javax.servlet.http.HttpSession getSession()
Returns the session into which the listener is being bound or from which the listener is being unbound.


All Packages  Class Hierarchy  This Package  Previous  Next  Index