javax.servlet.http
Class HttpSessionBindingEvent
EventObject
javax.servlet.http.HttpSessionBindingEvent
public class HttpSessionBindingEvent
extends EventObject
Send to an Object that implements HttpSessionBindingListener
when bound into a session or unbound from a session. Gives access to the
session and the name used to bind the Object to the session.
String | getName() - Returns the name used to refer to this Object.
|
HttpSession | getSession() - Returns the session the Object was bound to or unbound from.
|
HttpSessionBindingEvent
public HttpSessionBindingEvent(HttpSession session,
String name)
Creates a new HttpSessionBindingEvent
given the session
and the name used.
session
- which the Object was bound to or unbound fromname
- which was used to refer to the object
getName
public String getName()
Returns the name used to refer to this Object.
getSession
public HttpSession getSession()
Returns the session the Object was bound to or unbound from.