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.
This package and related packages are discussed in Chapters 12 and 13 of
Expert One-On-One J2EE Design and Development
by Rod Johnson (Wrox, 2002).
|
Java Source File Name | Type | Comment |
DispatcherServlet.java | Class | Central dispatcher for HTTP request handlers/controllers,
e.g. |
FrameworkServlet.java | Class | Base servlet for Spring's web framework. |
HandlerAdapter.java | Interface | MVC framework SPI interface, allowing parameterization of core MVC workflow.
Interface that must be implemented for each handler type to handle a request.
This interface is used to allow the DispatcherServlet to be indefinitely
extensible. |
HandlerExceptionResolver.java | Interface | Interface to be implemented by objects than can resolve exceptions thrown
during handler mapping or execution, in the typical case to error views. |
HandlerExecutionChain.java | Class | Handler execution chain, consisting of handler object and any handler interceptors. |
HandlerInterceptor.java | Interface | Workflow interface that allows for customized handler execution chains.
Applications can register any number of existing or custom interceptors
for certain groups of handlers, to add common preprocessing behavior
without needing to modify each handler implementation.
A HandlerInterceptor gets called before the appropriate HandlerAdapter
triggers the execution of the handler itself. |
HandlerMapping.java | Interface | Interface to be implemented by objects that define a mapping between
requests and handler objects.
This class can be implemented by application developers, although this is not
necessary, as
org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping and
org.springframework.web.servlet.handler.SimpleUrlHandlerMapping are included in the framework. |
HttpServletBean.java | Class | Simple extension of
javax.servlet.http.HttpServlet which treats
its config parameters (init-param entries within the
servlet tag in web.xml ) as bean properties.
A handy superclass for any type of servlet. |
LocaleResolver.java | Interface | Interface for web-based locale resolution strategies that allows for
both locale resolution via the request and locale modification via
request and response.
This interface allows for implementations based on request, session,
cookies, etc. |
ModelAndView.java | Class | Holder for both Model and View in the web MVC framework.
Note that these are entirely distinct. |
ModelAndViewDefiningException.java | Class | Exception to be thrown on error conditions that should forward
to a specific view with a specific model. |
RequestToViewNameTranslator.java | Interface | Strategy interface for translating an incoming
javax.servlet.http.HttpServletRequest into a
logical view name when no view name is explicitly supplied. |
ResourceServlet.java | Class | Simple servlet that can expose an internal resource, including a
default URL if the specified resource is not found. |
ThemeResolver.java | Interface | Interface for web-based theme resolution strategies that allows for
both theme resolution via the request and theme modification via
request and response.
This interface allows for implementations based on session,
cookies, etc. |
View.java | Interface | MVC View for a web interaction. |
ViewRendererServlet.java | Class | ViewRendererServlet is a bridge servlet, mainly for the Portlet MVC support.
For usage with Portlets, this Servlet is necessary to force the portlet container
to convert the PortletRequest to a ServletRequest, which it has to do when
including a resource via the PortletRequestDispatcher. |
ViewResolver.java | Interface | Interface to be implemented by objects that can resolve views by name.
View state doesn't change during the running of the application,
so implementations are free to cache views.
Implementations are encouraged to support internationalization,
i.e. |