public class HttpSessionBindingEvent extends HttpSessionEvent
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.HttpSession
,
javax.servlet.http.HttpSession#putAttribute(java.lang.String, java.lang.Object)
,
HttpSession.removeAttribute(java.lang.String)
,
HttpSession.invalidate()
,
HttpSessionBindingListener
,
Serialized FormConstructor and Description |
---|
HttpSessionBindingEvent(HttpSession session,
java.lang.String name)
Creates a new
HttpSessionBindingEvent given the session
and the name used. |
HttpSessionBindingEvent(HttpSession session,
java.lang.String name,
java.lang.Object value)
Creates a new
HttpSessionBindingEvent given the session
and the name used. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name used to refer to this Object.
|
java.lang.Object |
getValue()
Returns the value.
|
getSession
public HttpSessionBindingEvent(HttpSession session, java.lang.String name)
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 objectpublic HttpSessionBindingEvent(HttpSession session, java.lang.String name, java.lang.Object value)
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 objectvalue
-