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
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.
- See Also:
- HttpSession, HttpSessionBindingListener
-
HttpSessionBindingEvent(HttpSession, String)
- Constructs a new HttpSessionBindingEvent
-
getName()
- Returns the name to which the object is being bound or the name
from which the object is being unbound.
-
getSession()
- Returns the session into which the listener is being bound or
from which the listener is being unbound.
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
getName
public String getName()
- Returns the name to which the object is being bound or the name
from which the object is being unbound.
getSession
public 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