HttpSessionBindingListener (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.servlet.http Interface HttpSessionBindingListener

所有父接口:
EventListener

public interface HttpSessionBindingListener
extends EventListener

Causes an object to be notified when it is bound to or unbound from a session. The object is notified by an HttpSessionBindingEvent object. This may be as a result of a servlet programmer explicitly unbinding an attribute from a session, due to a session being invalidated, or due to a session timing out.

作者:
Various
另请参见:
HttpSession, HttpSessionBindingEvent

方法摘要
 void valueBound(HttpSessionBindingEvent event)
          Notifies the object that it is being bound to a session and identifies the session.
 void valueUnbound(HttpSessionBindingEvent event)
          Notifies the object that it is being unbound from a session and identifies the session.
 

方法详细信息

valueBound

void valueBound(HttpSessionBindingEvent event)
Notifies the object that it is being bound to a session and identifies the session.

参数:
event - the event that identifies the session
另请参见:
valueUnbound(javax.servlet.http.HttpSessionBindingEvent)

valueUnbound

void valueUnbound(HttpSessionBindingEvent event)
Notifies the object that it is being unbound from a session and identifies the session.

参数:
event - the event that identifies the session
另请参见:
valueBound(javax.servlet.http.HttpSessionBindingEvent)

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.