クラス HttpSessionEventPublisher
java.lang.ObjectSE
org.springframework.security.web.session.HttpSessionEventPublisher
- 実装されたすべてのインターフェース:
jakarta.servlet.http.HttpSessionIdListener
、jakarta.servlet.http.HttpSessionListener
、EventListenerSE
public class HttpSessionEventPublisher
extends ObjectSE
implements jakarta.servlet.http.HttpSessionListener, jakarta.servlet.http.HttpSessionIdListener
web.xml で次のように宣言されています
<listener> <listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class> </listener>
HttpSessionApplicationEvent
を Spring ルート WebApplicationContext に公開します。jakarta.servlet.http.HttpSessionListener.sessionCreated() を HttpSessionCreatedEvent
にマップします。jakarta.servlet.http.HttpSessionListener.sessionDestroyed() を HttpSessionDestroyedEvent
にマップします。コンストラクターのサマリー
コンストラクターメソッドのサマリー
修飾子と型メソッド説明void
sessionCreated
(jakarta.servlet.http.HttpSessionEvent event) HttpSessionCreatedEvent
をアプリケーション appContext に公開することにより、HttpSessionEvent を処理します。void
sessionDestroyed
(jakarta.servlet.http.HttpSessionEvent event) HttpSessionDestroyedEvent
をアプリケーション appContext に公開することにより、HttpSessionEvent を処理します。void
sessionIdChanged
(jakarta.servlet.http.HttpSessionEvent event, StringSE oldSessionId)
コンストラクターの詳細
HttpSessionEventPublisher
public HttpSessionEventPublisher()
メソッドの詳細
sessionCreated
public void sessionCreated(jakarta.servlet.http.HttpSessionEvent event) HttpSessionCreatedEvent
をアプリケーション appContext に公開することにより、HttpSessionEvent を処理します。- 次で指定:
- インターフェース
jakarta.servlet.http.HttpSessionListener
のsessionCreated
- パラメーター:
event
- コンテナーによって渡される HttpSessionEvent
sessionDestroyed
public void sessionDestroyed(jakarta.servlet.http.HttpSessionEvent event) HttpSessionDestroyedEvent
をアプリケーション appContext に公開することにより、HttpSessionEvent を処理します。- 次で指定:
- インターフェース
jakarta.servlet.http.HttpSessionListener
のsessionDestroyed
- パラメーター:
event
- HttpSessionEvent はコンテナーによって渡されます
sessionIdChanged
- 次で指定:
- インターフェース
jakarta.servlet.http.HttpSessionIdListener
のsessionIdChanged