javax.servlet.http
Class HttpSessionBindingEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.servlet.http.HttpSessionEvent
          extended by javax.servlet.http.HttpSessionBindingEvent
All Implemented Interfaces:
java.io.Serializable

public class HttpSessionBindingEvent
extends HttpSessionEvent

The event object for adding or removing a session object. See HttpSessionBindingListener.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
HttpSessionBindingEvent(HttpSession session, java.lang.String name)
          Create a new session binding event.
HttpSessionBindingEvent(HttpSession session, java.lang.String name, java.lang.Object value)
          Create a new session binding event.
 
Method Summary
 java.lang.String getName()
          Returns the session variable name.
 HttpSession getSession()
          Returns the session.
 java.lang.Object getValue()
          Returns the session variable value.
 
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)
Create a new session binding event.

Parameters:
session - the http session
name - the session attribute name.

HttpSessionBindingEvent

public HttpSessionBindingEvent(HttpSession session,
                               java.lang.String name,
                               java.lang.Object value)
Create a new session binding event.

Parameters:
session - the http session
name - the session attribute name.
value - the session attribute value.
Method Detail

getName

public java.lang.String getName()
Returns the session variable name.


getValue

public java.lang.Object getValue()
Returns the session variable value.


getSession

public HttpSession getSession()
Returns the session.

Overrides:
getSession in class HttpSessionEvent