javax.servlet.http
Class HttpSessionBindingEvent

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

public class HttpSessionBindingEvent
extends java.util.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, Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
HttpSessionBindingEvent(HttpSession session, java.lang.String name)
          Constructs a new HttpSessionBindingEvent
 
Method Summary
 java.lang.String getName()
          Returns the name to which the object is being bound or the name from which the object is being unbound.
 HttpSession getSession()
          Returns the session into which the listener is being bound or from which the listener is being unbound.
 
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

HttpSessionBindingEvent

public HttpSessionBindingEvent(HttpSession session,
                               java.lang.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
Method Detail

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.

getSession

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