|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.util.EventObject
javax.servlet.http.HttpSessionEvent
javax.servlet.http.HttpSessionBindingEvent
public class HttpSessionBindingEvent
Events of this type are either sent to an object that implements
HttpSessionBindingListener when it is bound or
unbound from a session, or to a HttpSessionAttributeListener
that has been configured in the deployment descriptor when any attribute is
bound, unbound or replaced in a session.
The session binds the object by a call to
HttpSession.setAttribute and unbinds the object
by a call to HttpSession.removeAttribute.
HttpSession,
HttpSessionBindingListener,
HttpSessionAttributeListener,
序列化表格| 字段摘要 |
|---|
| 从类 java.util.EventObject 继承的字段 |
|---|
source |
| 构造方法摘要 | |
|---|---|
HttpSessionBindingEvent(HttpSession session,
String name)
Constructs an event that notifies an object that it has been bound to or unbound from a session. |
|
HttpSessionBindingEvent(HttpSession session,
String name,
Object value)
Constructs an event that notifies an object that it has been bound to or unbound from a session. |
|
| 方法摘要 | |
|---|---|
String |
getName()
Returns the name with which the attribute is bound to or unbound from the session. |
HttpSession |
getSession()
Return the session that changed. |
Object |
getValue()
Returns the value of the attribute that has been added, removed or replaced. |
| 从类 java.util.EventObject 继承的方法 |
|---|
getSource, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public HttpSessionBindingEvent(HttpSession session,
String name)
HttpSessionBindingListener.
session - the session to which the object is bound or unboundname - the name with which the object is bound or unboundgetName(),
getSession()
public HttpSessionBindingEvent(HttpSession session,
String name,
Object value)
HttpSessionBindingListener.
session - the session to which the object is bound or unboundname - the name with which the object is bound or unboundgetName(),
getSession()| 方法详细信息 |
|---|
public HttpSession getSession()
HttpSessionEvent 中的 getSessionpublic String getName()
public Object getValue()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||