クラス SecurityWebApplicationContextUtils

java.lang.ObjectSE
org.springframework.web.context.support.WebApplicationContextUtils
org.springframework.security.web.context.support.SecurityWebApplicationContextUtils

public abstract class SecurityWebApplicationContextUtils extends org.springframework.web.context.support.WebApplicationContextUtils
Spring の WebApplicationContextUtils への Spring Security 拡張。
  • コンストラクターのサマリー

    コンストラクター
    コンストラクター
    説明
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    static org.springframework.web.context.WebApplicationContext
    findRequiredWebApplicationContext(jakarta.servlet.ServletContext servletContext)
    この Web アプリの一意の WebApplicationContext を見つけます。ルート Web アプリのコンテキスト(推奨)または登録済み ServletContext 属性の中で一意の WebApplicationContext (通常、現在の Web アプリケーションの単一の DispatcherServlet から取得)。

    クラス org.springframework.web.context.support.WebApplicationContextUtils から継承されたメソッド

    findWebApplicationContext, getRequiredWebApplicationContext, getWebApplicationContext, getWebApplicationContext, initServletPropertySources, initServletPropertySources, registerEnvironmentBeans, registerEnvironmentBeans, registerWebApplicationScopes, registerWebApplicationScopes

    クラス java.lang.ObjectSE から継承されたメソッド

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
  • コンストラクターの詳細

    • SecurityWebApplicationContextUtils

      public SecurityWebApplicationContextUtils()
  • メソッドの詳細

    • findRequiredWebApplicationContext

      public static org.springframework.web.context.WebApplicationContext findRequiredWebApplicationContext(jakarta.servlet.ServletContext servletContext)
      この Web アプリの一意の WebApplicationContext を見つけます。ルート Web アプリのコンテキスト(推奨)または登録済み ServletContext 属性の中で一意の WebApplicationContext (通常、現在の Web アプリケーションの単一の DispatcherServlet から取得)。

      DispatcherServlet のコンテキストの公開は、デフォルトでは true である publishContext プロパティを介して制御できますが、Web アプリで複数の DispatcherServlet を登録しても、単一のコンテキストのみを公開するように選択的に切り替えることができます。

      パラメーター:
      servletContext - ServletContext は、次の Web アプリケーションコンテキストを検索します
      戻り値:
      この Web アプリに必要な WebApplicationContext
      例外:
      IllegalStateExceptionSE - WebApplicationContext が見つからない場合
      関連事項:
      • WebApplicationContextUtils.getWebApplicationContext(ServletContext)
      • ServletContext.getAttributeNames()