类 SessionEventDispatcher
java.lang.Object
cn.taketoday.session.SessionEventDispatcher
- 从以下版本开始:
- 4.0 2022/4/29 22:46
- 作者:
- Harry Yang
-
字段概要
字段修饰符和类型字段说明private final cn.taketoday.util.ArrayHolder<WebSessionAttributeListener>private final cn.taketoday.util.ArrayHolder<WebSessionListener> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidadd list of WebSessionAttributeListenervoidadd list of WebSessionAttributeListenervoidaddSessionListeners(WebSessionListener... array) add list of WebSessionListenervoidadd list of WebSessionListenervoidattributeAdded(WebSession session, String attributeName, Object value) Notification that an attribute has been added to a session.voidattributeRemoved(WebSession session, String attributeName, Object value) Notification that an attribute has been removed from a session.voidattributeReplaced(WebSession session, String attributeName, Object oldValue, Object newValue) Notification that an attribute has been replaced in a session.cn.taketoday.util.ArrayHolder<WebSessionAttributeListener>cn.taketoday.util.ArrayHolder<WebSessionListener>voidonSessionCreated(WebSession session) Receives notification that a session has been created.voidonSessionDestroyed(WebSession session) Receives notification that a session is about to be invalidated.
-
字段详细资料
-
sessionListeners
-
attributeListeners
-
-
构造器详细资料
-
SessionEventDispatcher
public SessionEventDispatcher()
-
-
方法详细资料
-
onSessionCreated
Receives notification that a session has been created. -
onSessionDestroyed
Receives notification that a session is about to be invalidated. -
attributeAdded
Notification that an attribute has been added to a session. Called after the attribute is added.- 参数:
session- web session to hold this attributeattributeName- name of attributevalue- attribute value
-
attributeRemoved
Notification that an attribute has been removed from a session. Called after the attribute is removed.- 参数:
session- web session to hold this attributeattributeName- name of attributevalue- attribute value
-
attributeReplaced
public void attributeReplaced(WebSession session, String attributeName, Object oldValue, Object newValue) Notification that an attribute has been replaced in a session. Called after the attribute is replaced. The default implementation is a NO-OP.- 参数:
session- web session to hold this attributeattributeName- name of attributeoldValue- attribute value
-
addAttributeListeners
add list of WebSessionAttributeListener- 参数:
array- list to add- 抛出:
NullPointerException- input list is null
-
addAttributeListeners
add list of WebSessionAttributeListener- 参数:
list- list to add- 抛出:
NullPointerException- input list is null
-
addSessionListeners
add list of WebSessionListener- 参数:
array- array to add- 抛出:
NullPointerException- input list is null
-
addSessionListeners
add list of WebSessionListener- 参数:
list- list to add- 抛出:
NullPointerException- input list is null
-
getAttributeListeners
-
getSessionListeners
-