类 SessionEventDispatcher

java.lang.Object
cn.taketoday.session.SessionEventDispatcher

public class SessionEventDispatcher extends Object
从以下版本开始:
4.0 2022/4/29 22:46
作者:
Harry Yang
  • 字段详细资料

  • 构造器详细资料

    • SessionEventDispatcher

      public SessionEventDispatcher()
  • 方法详细资料

    • onSessionCreated

      public void onSessionCreated(WebSession session)
      Receives notification that a session has been created.
    • onSessionDestroyed

      public void onSessionDestroyed(WebSession session)
      Receives notification that a session is about to be invalidated.
    • attributeAdded

      public void attributeAdded(WebSession session, String attributeName, Object value)
      Notification that an attribute has been added to a session. Called after the attribute is added.
      参数:
      session - web session to hold this attribute
      attributeName - name of attribute
      value - attribute value
    • attributeRemoved

      public void attributeRemoved(WebSession session, String attributeName, @Nullable Object value)
      Notification that an attribute has been removed from a session. Called after the attribute is removed.
      参数:
      session - web session to hold this attribute
      attributeName - name of attribute
      value - 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 attribute
      attributeName - name of attribute
      oldValue - attribute value
    • addAttributeListeners

      public void addAttributeListeners(@Nullable WebSessionAttributeListener... array)
      add list of WebSessionAttributeListener
      参数:
      array - list to add
      抛出:
      NullPointerException - input list is null
    • addAttributeListeners

      public void addAttributeListeners(@Nullable Collection<WebSessionAttributeListener> list)
      add list of WebSessionAttributeListener
      参数:
      list - list to add
      抛出:
      NullPointerException - input list is null
    • addSessionListeners

      public void addSessionListeners(@Nullable WebSessionListener... array)
      add list of WebSessionListener
      参数:
      array - array to add
      抛出:
      NullPointerException - input list is null
    • addSessionListeners

      public void addSessionListeners(@Nullable Collection<WebSessionListener> list)
      add list of WebSessionListener
      参数:
      list - list to add
      抛出:
      NullPointerException - input list is null
    • getAttributeListeners

      public cn.taketoday.util.ArrayHolder<WebSessionAttributeListener> getAttributeListeners()
    • getSessionListeners

      public cn.taketoday.util.ArrayHolder<WebSessionListener> getSessionListeners()