您的位置:首页 > 理论基础 > 计算机网络

Java-HttpSession监听

2015-10-24 17:13 489 查看
//HttpSession监听
public interface HttpSessionActivationListener extends EventListener {

/** Notification that the session is about to be passivated.*/
//session无效监听
public void sessionWillPassivate(HttpSessionEvent se);
/** Notification that the session has just been activated.*/
//session有效监听
public void sessionDidActivate(HttpSessionEvent se);
}


//session 属性监听
public interface HttpSessionAttributeListener extends EventListener {
/** Notification that an attribute has been added to a session. Called after the attribute is added.*/
//属性增加监听
public void attributeAdded ( HttpSessionBindingEvent se );
/** Notification that an attribute has been removed from a session. Called after the attribute is removed. */
//属性删除监听
public void attributeRemoved ( HttpSessionBindingEvent se );
/** Notification that an attribute has been replaced in a session. Called after the attribute is replaced. */
//属性替换监听
public void attributeReplaced ( HttpSessionBindingEvent se );

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: