# Package org.springframework.web.context.support

@NonNullApi @NonNullFields package org.springframework.web.context.support
Classes supporting the `org.springframework.web.context` package, such as WebApplicationContext implementations and various utility classes.

Related Packages
Package
Description
org.springframework.web.context
Contains a variant of the application context interface for web applications, and the ContextLoaderListener that bootstraps a root web application context.
org.springframework.web.context.annotation
Provides convenience annotations for web scopes.
org.springframework.web.context.request
Support for generic request context holding, in particular for scoping of application objects per HTTP request or HTTP session.
Classes
Class
Description
AbstractRefreshableWebApplicationContext
`AbstractRefreshableApplicationContext` subclass which implements the `ConfigurableWebApplicationContext` interface for web environments.
AnnotationConfigWebApplicationContext
`WebApplicationContext` implementation which accepts component classes as input — in particular `@Configuration` classes, but also plain `@Component` classes as well as JSR-330 compliant classes using `jakarta.inject` annotations.
ContextExposingHttpServletRequest
HttpServletRequest decorator that makes all Spring beans in a given WebApplicationContext accessible as request attributes, through lazy checking once an attribute gets accessed.
GenericWebApplicationContext
Subclass of `GenericApplicationContext`, suitable for web environments.
GroovyWebApplicationContext
`WebApplicationContext` implementation which takes its configuration from Groovy bean definition scripts and/or XML files, as understood by a `GroovyBeanDefinitionReader`.
HttpRequestHandlerServlet
Simple HttpServlet that delegates to an `HttpRequestHandler` bean defined in Spring's root web application context.
RequestHandledEvent
Event raised when a request is handled within an ApplicationContext.
ServletConfigPropertySource
`PropertySource` that reads init parameters from a `ServletConfig` object.
ServletContextAttributeExporter
Exporter that takes Spring-defined objects and exposes them as ServletContext attributes.
ServletContextAttributeFactoryBean
`FactoryBean` that fetches a specific, existing ServletContext attribute.
ServletContextAwareProcessor
`BeanPostProcessor` implementation that passes the ServletContext to beans that implement the `ServletContextAware` interface.
ServletContextParameterFactoryBean
`FactoryBean` that retrieves a specific ServletContext init parameter (that is, a "context-param" defined in `web.xml`).
ServletContextPropertySource
`PropertySource` that reads init parameters from a `ServletContext` object.
ServletContextResource
`Resource` implementation for `ServletContext` resources, interpreting relative paths within the web application root directory.
ServletContextResourceLoader
ResourceLoader implementation that resolves paths as ServletContext resources, for use outside a WebApplicationContext (for example, in an HttpServletBean or GenericFilterBean subclass).
ServletContextResourcePatternResolver
ServletContext-aware subclass of `PathMatchingResourcePatternResolver`, able to find matching resources below the web application root directory via `ServletContext.getResourcePaths(java.lang.String)`.
ServletContextScope
`Scope` wrapper for a ServletContext, i.e.
ServletRequestHandledEvent
Servlet-specific subclass of RequestHandledEvent, adding servlet-specific context information.
SpringBeanAutowiringSupport
Convenient base class for self-autowiring classes that gets constructed within a Spring-based web application.
StandardServletEnvironment
`Environment` implementation to be used by `Servlet`-based web applications.
StaticWebApplicationContext
Static `WebApplicationContext` implementation for testing.
WebApplicationContextUtils
Convenience methods for retrieving the root `WebApplicationContext` for a given `ServletContext`.
WebApplicationObjectSupport
Convenient superclass for application objects running in a `WebApplicationContext`.
XmlWebApplicationContext
`WebApplicationContext` implementation which takes its configuration from XML documents, understood by an `XmlBeanDefinitionReader`.