インターフェースの使用
org.springframework.web.context.WebApplicationContext
WebApplicationContext を使用するパッケージ
パッケージ
説明
Spring MVC アプリケーションをテストするためのサーバー側のサポートが含まれています。
MockMvc の AssertJ サポート。
サーバーリクエスト処理のための
MockMvc
を使用した WebTestClient
を介した Spring MVC アプリケーションのテストのサポート。MockMvc
および HtmlUnit を使用して Spring MVC アプリケーションをテストするためのサーバー側のサポート。MockMvc
および Selenium HtmlUnitDriver
で Spring MVC アプリケーションをテストするためのサーバー側のサポート。 ビルトイン
MockMvcBuilder
実装が含まれています。Web データバインディングのサポートクラス。
Web アプリケーションのアプリケーションコンテキストインターフェースのバリアントと、ルート Web アプリケーションコンテキストをブートストラップする ContextLoaderListener が含まれています。
WebApplicationContext 実装やさまざまなユーティリティクラスなど、
org.springframework.web.context
パッケージをサポートするクラス。Bean スタイルの構成を可能にする汎用フィルター基本クラスを提供します。
JSF Web レイヤーを、Spring ルート WebApplicationContext でホストされる Spring サービスレイヤーと統合するためのサポートクラス。
JSF Web レイヤーを、Spring ルート WebApplicationContext でホストされる Spring サービスレイヤーと統合するための ELResolvers。
アプリケーションコンテキストインフラストラクチャと統合するサーブレット、および Spring Web MVC フレームワークのコアインターフェースとクラスを提供します。
Spring の Web MVC フレームワークのサポートクラス。
org.springframework.test.web.servlet 内の WebApplicationContext 使用
型 WebApplicationContext のパラメーターを持つ org.springframework.test.web.servlet のメソッド修飾子と型メソッド説明protected final MockMvc
MockMvcBuilderSupport.createMockMvc
(FilterEE[] filters, MockServletConfig servletConfig, WebApplicationContext webAppContext, RequestBuilder defaultRequestBuilder, CharsetSE defaultResponseCharacterEncoding, ListSE<ResultMatcher> globalResultMatchers, ListSE<ResultHandler> globalResultHandlers, ListSE<DispatcherServletCustomizer> dispatcherServletCustomizers) MockMvc
インスタンスを作成するためにMockMvcBuilderSupport.createMockMvc(Filter[], MockServletConfig, WebApplicationContext, RequestBuilder, List, List, List)
に委譲し、提供されたdefaultResponseCharacterEncoding
を使用してそのインスタンスを構成します。protected final MockMvc
MockMvcBuilderSupport.createMockMvc
(FilterEE[] filters, MockServletConfig servletConfig, WebApplicationContext webAppContext, RequestBuilder defaultRequestBuilder, ListSE<ResultMatcher> globalResultMatchers, ListSE<ResultHandler> globalResultHandlers, ListSE<DispatcherServletCustomizer> dispatcherServletCustomizers) org.springframework.test.web.servlet.assertj 内の WebApplicationContext 使用
型 WebApplicationContext のパラメーターを持つ org.springframework.test.web.servlet.assertj のメソッド修飾子と型メソッド説明static MockMvcTester
MockMvcTester.from
(WebApplicationContext applicationContext) 指定された完全に初期化された(つまり、リフレッシュされた)WebApplicationContext
を使用してインスタンスを作成するためのショートカット。static MockMvcTester
MockMvcTester.from
(WebApplicationContext applicationContext, FunctionSE<DefaultMockMvcBuilder, MockMvc> customizations) 指定された完全に初期化された(つまり、リフレッシュされた)WebApplicationContext
を使用してインスタンスを作成します。org.springframework.test.web.servlet.client 内の WebApplicationContext 使用
型 WebApplicationContext のパラメーターを持つ org.springframework.test.web.servlet.client のメソッド修飾子と型メソッド説明static MockMvcWebTestClient.MockMvcServerSpec<?>
MockMvcWebTestClient.bindToApplicationContext
(WebApplicationContext context) Spring MVC インフラストラクチャーとコントローラーをWebApplicationContext
に提供することにより、WebTestClient
の作成を開始します。org.springframework.test.web.servlet.htmlunit 内の WebApplicationContext 使用
型 WebApplicationContext のパラメーターを持つ org.springframework.test.web.servlet.htmlunit のメソッド修飾子と型メソッド説明static MockMvcWebClientBuilder
MockMvcWebClientBuilder.webAppContextSetup
(WebApplicationContext context) 提供されたWebApplicationContext
に基づいて、新しいMockMvcWebClientBuilder
を作成します。static MockMvcWebClientBuilder
MockMvcWebClientBuilder.webAppContextSetup
(WebApplicationContext context, MockMvcConfigurer configurer) 型 WebApplicationContext のパラメーターを持つ org.springframework.test.web.servlet.htmlunit のコンストラクター修飾子コンストラクター説明protected
protected
MockMvcWebClientBuilder
(WebApplicationContext context, MockMvcConfigurer configurer) protected
提供されたWebApplicationContext
を使用して新しいインスタンスを作成します。protected
MockMvcWebConnectionBuilderSupport
(WebApplicationContext context, MockMvcConfigurer configurer) 提供されたWebApplicationContext
およびMockMvcConfigurer
を使用して新しいインスタンスを作成します。org.springframework.test.web.servlet.htmlunit.webdriver 内の WebApplicationContext 使用
型 WebApplicationContext のパラメーターを持つ org.springframework.test.web.servlet.htmlunit.webdriver のメソッド修飾子と型メソッド説明static MockMvcHtmlUnitDriverBuilder
MockMvcHtmlUnitDriverBuilder.webAppContextSetup
(WebApplicationContext context) 提供されたWebApplicationContext
に基づいて、新しいMockMvcHtmlUnitDriverBuilder
を作成します。static MockMvcHtmlUnitDriverBuilder
MockMvcHtmlUnitDriverBuilder.webAppContextSetup
(WebApplicationContext context, MockMvcConfigurer configurer) 型 WebApplicationContext のパラメーターを持つ org.springframework.test.web.servlet.htmlunit.webdriver のコンストラクター修飾子コンストラクター説明protected
protected
MockMvcHtmlUnitDriverBuilder
(WebApplicationContext context, MockMvcConfigurer configurer) org.springframework.test.web.servlet.setup 内の WebApplicationContext 使用
修飾子と型メソッド説明protected abstract WebApplicationContext
AbstractMockMvcBuilder.initWebAppContext()
DispatcherServlet
に渡されるWebApplicationContext
を取得するメソッド。protected WebApplicationContext
DefaultMockMvcBuilder.initWebAppContext()
protected WebApplicationContext
RouterFunctionMockMvcBuilder.initWebAppContext()
protected WebApplicationContext
StandaloneMockMvcBuilder.initWebAppContext()
型 WebApplicationContext のパラメーターを持つ org.springframework.test.web.servlet.setup のメソッド修飾子と型メソッド説明default RequestPostProcessor
MockMvcConfigurer.beforeMockMvcCreated
(ConfigurableMockMvcBuilder<?> builder, WebApplicationContext context) MockMvc ビルダーと Spring WebApplicationContext で MockMvc インスタンスが作成されようとしているときに呼び出され、DispatcherServlet
に渡されます。MockMvcConfigurerAdapter.beforeMockMvcCreated
(ConfigurableMockMvcBuilder<?> builder, WebApplicationContext cxt) SharedHttpSessionConfigurer.beforeMockMvcCreated
(ConfigurableMockMvcBuilder<?> builder, WebApplicationContext context) static DefaultMockMvcBuilder
MockMvcBuilders.webAppContextSetup
(WebApplicationContext context) 指定された、完全に初期化された(つまり、リフレッシュされた)WebApplicationContext
を使用してMockMvc
インスタンスを構築します。型 WebApplicationContext のパラメーターを持つ org.springframework.test.web.servlet.setup のコンストラクター修飾子コンストラクター説明protected
DefaultMockMvcBuilder
(WebApplicationContext webAppContext) protected コンストラクター。org.springframework.web.bind.support 内の WebApplicationContext 使用
修飾子と型メソッド説明protected WebApplicationContext
SpringWebConstraintValidatorFactory.getWebApplicationContext()
SpringWebApplicationContext
を取得して使用します。org.springframework.web.context 内の WebApplicationContext 使用
org.springframework.web.context 内の WebApplicationContext サブインターフェース修飾子と型インターフェース説明interface
設定可能な Web アプリケーションコンテキストによって実装されるインターフェース。修飾子と型メソッド説明protected abstract WebApplicationContext
AbstractContextLoaderInitializer.createRootApplicationContext()
ContextLoaderListener
に提供される「ルート」アプリケーションコンテキストを作成します。protected WebApplicationContext
ContextLoader.createWebApplicationContext
(ServletContextEE sc) このローダーのルート WebApplicationContext を、デフォルトのコンテキストクラスまたは指定されている場合はカスタムコンテキストクラスのいずれかでインスタンス化します。static WebApplicationContext
ContextLoader.getCurrentWebApplicationContext()
現在のスレッドの Spring ルート Web アプリケーションコンテキストを取得します(つまりContextLoader.initWebApplicationContext
(ServletContextEE servletContext) 構築時に提供されたアプリケーションコンテキストを使用して、指定されたサーブレットコンテキストの Spring の Web アプリケーションコンテキストを初期化するか、"contextClass
" および "contextConfigLocation
" context-params に従って新しいものを作成します。型 WebApplicationContext のパラメーターを持つ org.springframework.web.context のコンストラクター修飾子コンストラクター説明ContextLoader
(WebApplicationContext rootContext) 指定されたアプリケーションコンテキストで新しいContextLoader
を作成します。ContextLoaderListener
(WebApplicationContext rootContext) 指定されたアプリケーションコンテキストを使用して新しいContextLoaderListener
を作成し、機能に関して仕様が制限されているServletContextEvent
EE -providedServletContext
EE 参照を使用して初期化します。ContextLoaderListener
(WebApplicationContext rootContext, ServletContextEE servletContext) 指定されたアプリケーションコンテキストで新しいContextLoaderListener
を作成します。org.springframework.web.context.support 内の WebApplicationContext 使用
修飾子と型クラス説明class
Web 環境用のConfigurableWebApplicationContext
インターフェースを実装するAbstractRefreshableApplicationContext
サブクラス。class
コンポーネントクラスを入力として受け入れるWebApplicationContext
実装 — 特に@Configuration
クラスだけでなく、プレーンな@Component
クラス、jakarta.inject
アノテーションを使用する JSR-330 準拠のクラス。class
Web 環境に適したGenericApplicationContext
のサブクラス。class
GroovyBeanDefinitionReader
で理解されるように、Groovy Bean 定義スクリプトおよび / または XML ファイルから構成を取得するWebApplicationContext
実装。class
テスト用の静的WebApplicationContext
実装。class
XmlBeanDefinitionReader
が理解する XML ドキュメントから構成を取得するWebApplicationContext
実装。修飾子と型メソッド説明static WebApplicationContext
WebApplicationContextUtils.findWebApplicationContext
(ServletContextEE sc) この Web アプリの一意のWebApplicationContext
を見つけます。ルート Web アプリのコンテキスト(推奨)または登録済みServletContext
属性の中で一意のWebApplicationContext
(通常、現在の Web アプリケーションの単一のDispatcherServlet
から取得)。static WebApplicationContext
WebApplicationContextUtils.getRequiredWebApplicationContext
(ServletContextEE sc) この Web アプリのルートWebApplicationContext
を見つけます。通常はContextLoaderListener
を介してロードされます。final WebApplicationContext
ContextExposingHttpServletRequest.getWebApplicationContext()
このリクエストが実行される WebApplicationContext を返します。static WebApplicationContext
WebApplicationContextUtils.getWebApplicationContext
(ServletContextEE sc) この Web アプリのルートWebApplicationContext
を見つけます。通常はContextLoaderListener
を介してロードされます。static WebApplicationContext
WebApplicationContextUtils.getWebApplicationContext
(ServletContextEE sc, StringSE attrName) この Web アプリのカスタムWebApplicationContext
を見つけます。protected final WebApplicationContext
WebApplicationObjectSupport.getWebApplicationContext()
現在のアプリケーションコンテキストを WebApplicationContext として返します。型 WebApplicationContext のパラメーターを持つ org.springframework.web.context.support のコンストラクター修飾子コンストラクター説明ContextExposingHttpServletRequest
(HttpServletRequestEE originalRequest, WebApplicationContext context) 指定されたリクエストに対して新しい ContextExposingHttpServletRequest を作成します。ContextExposingHttpServletRequest
(HttpServletRequestEE originalRequest, WebApplicationContext context, SetSE<StringSE> exposedContextBeanNames) 指定されたリクエストに対して新しい ContextExposingHttpServletRequest を作成します。org.springframework.web.filter 内の WebApplicationContext 使用
修飾子と型メソッド説明protected WebApplicationContext
DelegatingFilterProxy.findWebApplicationContext()
可能な場合、構築時に渡されたWebApplicationContext
を返します。型 WebApplicationContext のパラメーターを持つ org.springframework.web.filter のメソッド修飾子と型メソッド説明protected FilterEE
DelegatingFilterProxy.initDelegate
(WebApplicationContext wac) Bean として指定された Spring アプリケーションコンテキストとして定義されたフィルターデリゲートを初期化します。型 WebApplicationContext のパラメーターを持つ org.springframework.web.filter のコンストラクター修飾子コンストラクター説明DelegatingFilterProxy
(StringSE targetBeanName, WebApplicationContext wac) 指定された SpringWebApplicationContext
から名前付きターゲット Bean を取得する新しいDelegatingFilterProxy
を作成します。org.springframework.web.jsf 内の WebApplicationContext 使用
修飾子と型メソッド説明static WebApplicationContext
FacesContextUtils.getRequiredWebApplicationContext
(FacesContextEE fc) この Web アプリのルートWebApplicationContext
を見つけます。通常はContextLoaderListener
を介してロードされます。protected WebApplicationContext
DelegatingNavigationHandlerProxy.getWebApplicationContext
(FacesContextEE facesContext) Bean 名前解決を委譲する Web アプリケーションコンテキストを取得します。protected WebApplicationContext
DelegatingPhaseListenerMulticaster.getWebApplicationContext
(FacesContextEE facesContext) Bean 名前解決を委譲する Web アプリケーションコンテキストを取得します。static WebApplicationContext
FacesContextUtils.getWebApplicationContext
(FacesContextEE fc) この Web アプリのルートWebApplicationContext
を見つけます。通常はContextLoaderListener
を介してロードされます。org.springframework.web.jsf.el 内の WebApplicationContext 使用
修飾子と型メソッド説明protected WebApplicationContext
SpringBeanFacesELResolver.getWebApplicationContext
(ELContextEE elContext) Bean 名前解決を委譲する Web アプリケーションコンテキストを取得します。protected WebApplicationContext
WebApplicationContextFacesELResolver.getWebApplicationContext
(ELContextEE elContext) WebApplicationContext
参照を取得して公開します。org.springframework.web.servlet 内の WebApplicationContext 使用
修飾子と型メソッド説明protected WebApplicationContext
FrameworkServlet.createWebApplicationContext
(ApplicationContext parent) このサーブレットの WebApplicationContext(デフォルトのXmlWebApplicationContext
または設定されている場合はcustom context class
)をインスタンス化します。protected WebApplicationContext
FrameworkServlet.createWebApplicationContext
(WebApplicationContext parent) このサーブレットの WebApplicationContext(デフォルトのXmlWebApplicationContext
または設定されている場合はcustom context class
)をインスタンス化します。protected WebApplicationContext
FrameworkServlet.findWebApplicationContext()
final WebApplicationContext
FrameworkServlet.getWebApplicationContext()
このサーブレットの WebApplicationContext を返します。protected WebApplicationContext
FrameworkServlet.initWebApplicationContext()
このサーブレットの WebApplicationContext を初期化して公開します。型 WebApplicationContext のパラメーターを持つ org.springframework.web.servlet のメソッド修飾子と型メソッド説明protected WebApplicationContext
FrameworkServlet.createWebApplicationContext
(WebApplicationContext parent) このサーブレットの WebApplicationContext(デフォルトのXmlWebApplicationContext
または設定されている場合はcustom context class
)をインスタンス化します。型 WebApplicationContext のパラメーターを持つ org.springframework.web.servlet のコンストラクター修飾子コンストラクター説明DispatcherServlet
(WebApplicationContext webApplicationContext) 指定された Web アプリケーションコンテキストで新しいDispatcherServlet
を作成します。FrameworkServlet
(WebApplicationContext webApplicationContext) 指定された Web アプリケーションコンテキストで新しいFrameworkServlet
を作成します。org.springframework.web.servlet.support 内の WebApplicationContext 使用
修飾子と型メソッド説明protected WebApplicationContext
AbstractAnnotationConfigDispatcherServletInitializer.createRootApplicationContext()
ContextLoaderListener
に提供される「ルート」アプリケーションコンテキストを作成します。protected WebApplicationContext
AbstractAnnotationConfigDispatcherServletInitializer.createServletApplicationContext()
DispatcherServlet
に提供されるサーブレットアプリケーションコンテキストを作成します。protected abstract WebApplicationContext
AbstractDispatcherServletInitializer.createServletApplicationContext()
DispatcherServlet
に提供されるサーブレットアプリケーションコンテキストを作成します。static WebApplicationContext
RequestContextUtils.findWebApplicationContext
(HttpServletRequestEE request) リクエスト処理を開始した DispatcherServlet に関連付けられている WebApplicationContext を探し、現在のリクエストに関連付けられているものが見つからなかった場合はグローバルコンテキストを探します。static WebApplicationContext
RequestContextUtils.findWebApplicationContext
(HttpServletRequestEE request, ServletContextEE servletContext) リクエスト処理を開始した DispatcherServlet に関連付けられている WebApplicationContext を探し、現在のリクエストに関連付けられているものが見つからなかった場合はグローバルコンテキストを探します。final WebApplicationContext
RequestContext.getWebApplicationContext()
現在の WebApplicationContext を返します。型 WebApplicationContext のパラメーターを持つ org.springframework.web.servlet.support のメソッド修飾子と型メソッド説明protected FrameworkServlet
AbstractDispatcherServletInitializer.createDispatcherServlet
(WebApplicationContext servletAppContext)