クラス 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 にマップします。コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明voidsessionCreated(jakarta.servlet.http.HttpSessionEvent event) HttpSessionCreatedEventをアプリケーション appContext に公開して HttpSessionEvent を処理します。voidsessionDestroyed(jakarta.servlet.http.HttpSessionEvent event) HttpSessionDestroyedEventをアプリケーション appContext に公開して HttpSessionEvent を処理します。voidsessionIdChanged(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