Package | Description |
---|---|
org.springframework.remoting.jaxrpc |
Remoting classes for Web Services via JAX-RPC.
|
org.springframework.test.web.servlet |
Contains server-side support for testing Spring MVC applications.
|
org.springframework.test.web.servlet.setup |
Contains built-in
MockMvcBuilder implementations. |
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.support |
Classes supporting the
org.springframework.web.context package,
such as WebApplicationContext implementations and various utility classes. |
org.springframework.web.filter |
Provides generic filter base classes allowing for bean-style configuration.
|
org.springframework.web.jsf |
Support classes for integrating a JSF web tier with a Spring middle tier
which is hosted in a Spring root WebApplicationContext.
|
org.springframework.web.jsf.el |
Support classes for integrating a JSF 1.2 web tier with a Spring middle tier
which is hosted in a Spring root WebApplicationContext.
|
org.springframework.web.portlet.context |
Support for Spring's application context concept in a portlet environment,
including ApplicationContext implementations and various utility classes.
|
org.springframework.web.servlet |
Provides servlets that integrate with the application context
infrastructure, and the core interfaces and classes for the
Spring web MVC framework.
|
org.springframework.web.servlet.support |
Support classes for Spring's web MVC framework.
|
org.springframework.web.servlet.view.tiles |
Support classes for the integration of
Tiles
(included in Struts) as Spring web view technology.
|
org.springframework.web.servlet.view.tiles2 |
Support classes for the integration of
Tiles2
(the standalone version of Tiles) as Spring web view technology.
|
org.springframework.web.struts |
Support classes for integrating a Struts web tier with a Spring middle
tier which is typically hosted in a Spring root WebApplicationContext.
|
Modifier and Type | Method and Description |
---|---|
protected WebApplicationContext |
ServletEndpointSupport.getWebApplicationContext()
Deprecated.
Return the current Spring WebApplicationContext.
|
Modifier and Type | Method and Description |
---|---|
protected MockMvc |
MockMvcBuilderSupport.createMockMvc(javax.servlet.Filter[] filters,
MockServletConfig servletConfig,
WebApplicationContext webAppContext,
RequestBuilder defaultRequestBuilder,
List<ResultMatcher> globalResultMatchers,
List<ResultHandler> globalResultHandlers,
Boolean dispatchOptions) |
Modifier and Type | Method and Description |
---|---|
protected void |
StandaloneMockMvcBuilder.initWebAppContext(WebApplicationContext cxt) |
protected void |
DefaultMockMvcBuilder.initWebAppContext(WebApplicationContext webAppContext)
Invoked from
DefaultMockMvcBuilder.build() before the MockMvc instance is created. |
static DefaultMockMvcBuilder<DefaultMockMvcBuilder<?>> |
MockMvcBuilders.webAppContextSetup(WebApplicationContext context)
Build a
MockMvc using the given, fully initialized, i.e. |
Constructor and Description |
---|
DefaultMockMvcBuilder(WebApplicationContext webAppContext)
Protected constructor.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ConfigurableWebApplicationContext
Interface to be implemented by configurable web application contexts.
|
Modifier and Type | Method and Description |
---|---|
protected abstract WebApplicationContext |
AbstractContextLoaderInitializer.createRootApplicationContext()
Create the "root" application context to be provided to the
ContextLoaderListener . |
protected WebApplicationContext |
ContextLoader.createWebApplicationContext(javax.servlet.ServletContext sc)
Instantiate the root WebApplicationContext for this loader, either the
default context class or a custom context class if specified.
|
protected WebApplicationContext |
ContextLoader.createWebApplicationContext(javax.servlet.ServletContext sc,
ApplicationContext parent)
Deprecated.
|
static WebApplicationContext |
ContextLoader.getCurrentWebApplicationContext()
Obtain the Spring root web application context for the current thread
(i.e.
|
WebApplicationContext |
ContextLoader.initWebApplicationContext(javax.servlet.ServletContext servletContext)
Initialize Spring's web application context for the given servlet context,
using the application context provided at construction time, or creating a new one
according to the "
contextClass " and
"contextConfigLocation " context-params. |
Constructor and Description |
---|
ContextLoader(WebApplicationContext context)
Create a new
ContextLoader with the given application context. |
ContextLoaderListener(WebApplicationContext context)
Create a new
ContextLoaderListener with the given application context. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractRefreshableWebApplicationContext
AbstractRefreshableApplicationContext
subclass which implements the
ConfigurableWebApplicationContext
interface for web environments. |
class |
AnnotationConfigWebApplicationContext
WebApplicationContext
implementation which accepts annotated classes as input - in particular
@Configuration -annotated
classes, but also plain @Component
classes and JSR-330 compliant classes using javax.inject annotations. |
class |
GenericWebApplicationContext
Subclass of
GenericApplicationContext , suitable for web environments. |
class |
StaticWebApplicationContext
Static
WebApplicationContext
implementation for testing. |
class |
XmlWebApplicationContext
WebApplicationContext implementation
which takes its configuration from XML documents, understood by an
XmlBeanDefinitionReader . |
Modifier and Type | Method and Description |
---|---|
static WebApplicationContext |
WebApplicationContextUtils.getRequiredWebApplicationContext(javax.servlet.ServletContext sc)
Find the root
WebApplicationContext for this web app, typically
loaded via ContextLoaderListener . |
protected WebApplicationContext |
WebApplicationObjectSupport.getWebApplicationContext()
Return the current application context as WebApplicationContext.
|
WebApplicationContext |
ContextExposingHttpServletRequest.getWebApplicationContext()
Return the WebApplicationContext that this request runs in.
|
static WebApplicationContext |
WebApplicationContextUtils.getWebApplicationContext(javax.servlet.ServletContext sc)
Find the root
WebApplicationContext for this web app, typically
loaded via ContextLoaderListener . |
static WebApplicationContext |
WebApplicationContextUtils.getWebApplicationContext(javax.servlet.ServletContext sc,
String attrName)
Find a custom
WebApplicationContext for this web app. |
Constructor and Description |
---|
ContextExposingHttpServletRequest(javax.servlet.http.HttpServletRequest originalRequest,
WebApplicationContext context)
Create a new ContextExposingHttpServletRequest for the given request.
|
ContextExposingHttpServletRequest(javax.servlet.http.HttpServletRequest originalRequest,
WebApplicationContext context,
Set<String> exposedContextBeanNames)
Create a new ContextExposingHttpServletRequest for the given request.
|
Modifier and Type | Method and Description |
---|---|
protected WebApplicationContext |
DelegatingFilterProxy.findWebApplicationContext()
Return the
WebApplicationContext passed in at construction time, if available. |
Modifier and Type | Method and Description |
---|---|
protected javax.servlet.Filter |
DelegatingFilterProxy.initDelegate(WebApplicationContext wac)
Initialize the Filter delegate, defined as bean the given Spring
application context.
|
Constructor and Description |
---|
DelegatingFilterProxy(String targetBeanName,
WebApplicationContext wac)
Create a new
DelegatingFilterProxy that will retrieve the named target
bean from the given Spring WebApplicationContext . |
Modifier and Type | Method and Description |
---|---|
static WebApplicationContext |
FacesContextUtils.getRequiredWebApplicationContext(javax.faces.context.FacesContext fc)
Find the root
WebApplicationContext for this web app, typically
loaded via ContextLoaderListener . |
protected WebApplicationContext |
DelegatingNavigationHandlerProxy.getWebApplicationContext(javax.faces.context.FacesContext facesContext)
Retrieve the web application context to delegate bean name resolution to.
|
protected WebApplicationContext |
DelegatingPhaseListenerMulticaster.getWebApplicationContext(javax.faces.context.FacesContext facesContext)
Retrieve the web application context to delegate bean name resolution to.
|
static WebApplicationContext |
FacesContextUtils.getWebApplicationContext(javax.faces.context.FacesContext fc)
Find the root
WebApplicationContext for this web app, typically
loaded via ContextLoaderListener . |
protected WebApplicationContext |
DelegatingVariableResolver.getWebApplicationContext(javax.faces.context.FacesContext facesContext)
Deprecated.
Retrieve the web application context to delegate bean name resolution to.
|
protected WebApplicationContext |
WebApplicationContextVariableResolver.getWebApplicationContext(javax.faces.context.FacesContext facesContext)
Deprecated.
Retrieve the WebApplicationContext reference to expose.
|
Modifier and Type | Method and Description |
---|---|
protected WebApplicationContext |
SpringBeanFacesELResolver.getWebApplicationContext(javax.el.ELContext elContext)
Retrieve the web application context to delegate bean name resolution to.
|
protected WebApplicationContext |
WebApplicationContextFacesELResolver.getWebApplicationContext(javax.el.ELContext elContext)
Retrieve the WebApplicationContext reference to expose.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ConfigurablePortletApplicationContext
Interface to be implemented by configurable portlet application contexts.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractRefreshablePortletApplicationContext
AbstractRefreshableApplicationContext
subclass which implements the ConfigurablePortletApplicationContext
interface for portlet environments. |
class |
StaticPortletApplicationContext
Static Portlet-based
ApplicationContext
implementation for testing. |
class |
XmlPortletApplicationContext
Portlet-based
WebApplicationContext
implementation which takes its configuration from XML documents, understood
by an XmlBeanDefinitionReader . |
Modifier and Type | Method and Description |
---|---|
protected WebApplicationContext |
FrameworkServlet.createWebApplicationContext(ApplicationContext parent)
Instantiate the WebApplicationContext for this servlet, either a default
XmlWebApplicationContext
or a custom context class , if set. |
protected WebApplicationContext |
FrameworkServlet.createWebApplicationContext(WebApplicationContext parent)
Instantiate the WebApplicationContext for this servlet, either a default
XmlWebApplicationContext
or a custom context class , if set. |
protected WebApplicationContext |
FrameworkServlet.findWebApplicationContext()
|
WebApplicationContext |
FrameworkServlet.getWebApplicationContext()
Return this servlet's WebApplicationContext.
|
protected WebApplicationContext |
FrameworkServlet.initWebApplicationContext()
Initialize and publish the WebApplicationContext for this servlet.
|
Modifier and Type | Method and Description |
---|---|
protected WebApplicationContext |
FrameworkServlet.createWebApplicationContext(WebApplicationContext parent)
Instantiate the WebApplicationContext for this servlet, either a default
XmlWebApplicationContext
or a custom context class , if set. |
Constructor and Description |
---|
DispatcherServlet(WebApplicationContext webApplicationContext)
Create a new
DispatcherServlet with the given web application context. |
FrameworkServlet(WebApplicationContext webApplicationContext)
Create a new
FrameworkServlet with the given web application context. |
Modifier and Type | Method and Description |
---|---|
protected WebApplicationContext |
AbstractAnnotationConfigDispatcherServletInitializer.createRootApplicationContext()
Create the "root" application context to be provided to the
ContextLoaderListener . |
protected WebApplicationContext |
AbstractAnnotationConfigDispatcherServletInitializer.createServletApplicationContext()
Create a servlet application context to be provided to the
DispatcherServlet . |
protected abstract WebApplicationContext |
AbstractDispatcherServletInitializer.createServletApplicationContext()
Create a servlet application context to be provided to the
DispatcherServlet . |
WebApplicationContext |
RequestContext.getWebApplicationContext()
Return the current WebApplicationContext.
|
static WebApplicationContext |
RequestContextUtils.getWebApplicationContext(javax.servlet.ServletRequest request)
Look for the WebApplicationContext associated with the DispatcherServlet
that has initiated request processing.
|
static WebApplicationContext |
RequestContextUtils.getWebApplicationContext(javax.servlet.ServletRequest request,
javax.servlet.ServletContext servletContext)
Look for the WebApplicationContext associated with the DispatcherServlet
that has initiated request processing, and for the global context if none
was found associated with the current request.
|
Modifier and Type | Method and Description |
---|---|
protected WebApplicationContext |
ComponentControllerSupport.getWebApplicationContext()
Deprecated.
Return the current Spring WebApplicationContext.
|
Modifier and Type | Method and Description |
---|---|
protected abstract org.apache.tiles.preparer.ViewPreparer |
AbstractSpringPreparerFactory.getPreparer(String name,
WebApplicationContext context)
Obtain a preparer instance for the given preparer name,
based on the given Spring WebApplicationContext.
|
protected org.apache.tiles.preparer.ViewPreparer |
SimpleSpringPreparerFactory.getPreparer(String name,
WebApplicationContext context) |
protected org.apache.tiles.preparer.ViewPreparer |
SpringBeanPreparerFactory.getPreparer(String name,
WebApplicationContext context) |
Modifier and Type | Method and Description |
---|---|
protected WebApplicationContext |
ContextLoaderPlugIn.createWebApplicationContext(WebApplicationContext parent)
Deprecated.
Instantiate the WebApplicationContext for the ActionServlet, either a default
XmlWebApplicationContext or a custom context class if set.
|
static WebApplicationContext |
DelegatingActionUtils.findRequiredWebApplicationContext(org.apache.struts.action.ActionServlet actionServlet,
org.apache.struts.config.ModuleConfig moduleConfig)
Deprecated.
Find most specific context available: check ContextLoaderPlugIn's
WebApplicationContext first, fall back to root WebApplicationContext else.
|
static WebApplicationContext |
DelegatingActionUtils.getRequiredWebApplicationContext(org.apache.struts.action.ActionServlet actionServlet,
org.apache.struts.config.ModuleConfig moduleConfig)
Deprecated.
Fetch ContextLoaderPlugIn's WebApplicationContext from the ServletContext.
|
protected WebApplicationContext |
AutowiringTilesRequestProcessor.getWebApplicationContext()
Deprecated.
Return the current Spring WebApplicationContext.
|
protected WebApplicationContext |
DelegatingRequestProcessor.getWebApplicationContext()
Deprecated.
Return the
WebApplicationContext that this processor
delegates to. |
protected WebApplicationContext |
LookupDispatchActionSupport.getWebApplicationContext()
Deprecated.
Return the current Spring WebApplicationContext.
|
protected WebApplicationContext |
DelegatingTilesRequestProcessor.getWebApplicationContext()
Deprecated.
Return the WebApplicationContext that this processor delegates to.
|
protected WebApplicationContext |
ActionSupport.getWebApplicationContext()
Deprecated.
Return the current Spring WebApplicationContext.
|
protected WebApplicationContext |
AutowiringRequestProcessor.getWebApplicationContext()
Deprecated.
Return the current Spring WebApplicationContext.
|
protected WebApplicationContext |
MappingDispatchActionSupport.getWebApplicationContext()
Deprecated.
Return the current Spring WebApplicationContext.
|
WebApplicationContext |
ContextLoaderPlugIn.getWebApplicationContext()
Deprecated.
Return this PlugIn's WebApplicationContext.
|
protected WebApplicationContext |
DispatchActionSupport.getWebApplicationContext()
Deprecated.
Return the current Spring WebApplicationContext.
|
protected WebApplicationContext |
DelegatingActionProxy.getWebApplicationContext(org.apache.struts.action.ActionServlet actionServlet,
org.apache.struts.config.ModuleConfig moduleConfig)
Deprecated.
Fetch ContextLoaderPlugIn's
WebApplicationContext from the
ServletContext , falling back to the root
WebApplicationContext . |
static WebApplicationContext |
DelegatingActionUtils.getWebApplicationContext(org.apache.struts.action.ActionServlet actionServlet,
org.apache.struts.config.ModuleConfig moduleConfig)
Deprecated.
Fetch ContextLoaderPlugIn's WebApplicationContext from the ServletContext.
|
protected WebApplicationContext |
ContextLoaderPlugIn.initWebApplicationContext()
Deprecated.
Initialize and publish the WebApplicationContext for the ActionServlet.
|
protected WebApplicationContext |
LookupDispatchActionSupport.initWebApplicationContext(org.apache.struts.action.ActionServlet actionServlet)
Deprecated.
Fetch ContextLoaderPlugIn's WebApplicationContext from the ServletContext,
falling back to the root WebApplicationContext (the usual case).
|
protected WebApplicationContext |
ActionSupport.initWebApplicationContext(org.apache.struts.action.ActionServlet actionServlet)
Deprecated.
Fetch ContextLoaderPlugIn's WebApplicationContext from the ServletContext,
falling back to the root WebApplicationContext (the usual case).
|
protected WebApplicationContext |
MappingDispatchActionSupport.initWebApplicationContext(org.apache.struts.action.ActionServlet actionServlet)
Deprecated.
Fetch ContextLoaderPlugIn's WebApplicationContext from the ServletContext,
falling back to the root WebApplicationContext (the usual case).
|
protected WebApplicationContext |
DispatchActionSupport.initWebApplicationContext(org.apache.struts.action.ActionServlet actionServlet)
Deprecated.
Fetch ContextLoaderPlugIn's WebApplicationContext from the ServletContext,
falling back to the root WebApplicationContext (the usual case).
|
protected WebApplicationContext |
AutowiringTilesRequestProcessor.initWebApplicationContext(org.apache.struts.action.ActionServlet actionServlet,
org.apache.struts.config.ModuleConfig moduleConfig)
Deprecated.
Fetch ContextLoaderPlugIn's WebApplicationContext from the ServletContext,
falling back to the root WebApplicationContext.
|
protected WebApplicationContext |
DelegatingRequestProcessor.initWebApplicationContext(org.apache.struts.action.ActionServlet actionServlet,
org.apache.struts.config.ModuleConfig moduleConfig)
Deprecated.
Fetch ContextLoaderPlugIn's
WebApplicationContext from the
ServletContext , falling back to the root
WebApplicationContext . |
protected WebApplicationContext |
DelegatingTilesRequestProcessor.initWebApplicationContext(org.apache.struts.action.ActionServlet actionServlet,
org.apache.struts.config.ModuleConfig moduleConfig)
Deprecated.
Fetch ContextLoaderPlugIn's WebApplicationContext from the ServletContext,
falling back to the root WebApplicationContext.
|
protected WebApplicationContext |
AutowiringRequestProcessor.initWebApplicationContext(org.apache.struts.action.ActionServlet actionServlet,
org.apache.struts.config.ModuleConfig moduleConfig)
Deprecated.
Fetch ContextLoaderPlugIn's WebApplicationContext from the ServletContext,
falling back to the root WebApplicationContext.
|
Modifier and Type | Method and Description |
---|---|
protected WebApplicationContext |
ContextLoaderPlugIn.createWebApplicationContext(WebApplicationContext parent)
Deprecated.
Instantiate the WebApplicationContext for the ActionServlet, either a default
XmlWebApplicationContext or a custom context class if set.
|
Copyright © 2015. All rights reserved.