Package javax.servlet.http
Class HttpSessionBindingEvent
- java.lang.Object
-
- java.util.EventObject
-
- javax.servlet.http.HttpSessionBindingEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class HttpSessionBindingEvent extends java.util.EventObjectSent to an object that implementsHttpSessionBindingListenerwhen the object is bound to or unbound from the session.The session binds the object by a call to
HttpSession.putValueand unbinds the object by a call toHttpSession.removeValue.- Version:
- $Version$
- Author:
- Various
- See Also:
HttpSession,HttpSessionBindingListener, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpSessionBindingEvent(HttpSession session, java.lang.String name)Constructs an event that notifies an object that it has been bound to or unbound from a session.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Returns the name with which the object is bound to or unbound from the session.HttpSessiongetSession()Returns the session to or from which the object is bound or unbound.
-
-
-
Constructor Detail
-
HttpSessionBindingEvent
public HttpSessionBindingEvent(HttpSession session, java.lang.String name)
Constructs an event that notifies an object that it has been bound to or unbound from a session. To receive the event, the object must implementHttpSessionBindingListener.- Parameters:
session- the session to which the object is bound or unboundname- the name with which the object is bound or unbound- See Also:
getName(),getSession()
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name with which the object is bound to or unbound from the session.- Returns:
- a string specifying the name with which the object is bound to or unbound from the session
-
getSession
public HttpSession getSession()
Returns the session to or from which the object is bound or unbound.- Returns:
- the session to which the object is bound or from which the object is unbound
-
-