Package 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).
Interface Summary Interface Description AsyncHandlerInterceptor ExtendsHandlerInterceptor
with a callback method invoked after the start of asynchronous request handling.FlashMapManager A strategy interface for retrieving and saving FlashMap instances.HandlerAdapter MVC framework SPI, allowing parameterization of the core MVC workflow.HandlerExceptionResolver Interface to be implemented by objects that can resolve exceptions thrown during handler mapping or execution, in the typical case to error views.HandlerInterceptor Workflow interface that allows for customized handler execution chains.HandlerMapping Interface to be implemented by objects that define a mapping between requests and handler objects.LocaleContextResolver Extension ofLocaleResolver
, adding support for a rich locale context (potentially including locale and time zone information).LocaleResolver Interface for web-based locale resolution strategies that allows for both locale resolution via the request and locale modification via request and response.RequestToViewNameTranslator Strategy interface for translating an incomingHttpServletRequest
into a logical view name when no view name is explicitly supplied.SmartView Provides additional information about a View such as whether it performs redirects.ThemeResolver Interface for web-based theme resolution strategies that allows for both theme resolution via the request and theme modification via request and response.View MVC View for a web interaction.ViewResolver Interface to be implemented by objects that can resolve views by name.Class Summary Class Description DispatcherServlet Central dispatcher for HTTP request handlers/controllers, e.g.FlashMap A FlashMap provides a way for one request to store attributes intended for use in another.FrameworkServlet Base servlet for Spring's web framework.HandlerExecutionChain Handler execution chain, consisting of handler object and any handler interceptors.HttpServletBean Simple extension ofHttpServlet
which treats its config parameters (init-param
entries within theservlet
tag inweb.xml
) as bean properties.ModelAndView Holder for both Model and View in the web MVC framework.ResourceServlet Deprecated. as of Spring 4.3.5, in favor ofResourceHttpRequestHandler
ViewRendererServlet ViewRendererServlet is a bridge servlet, mainly for the Portlet MVC support.Exception Summary Exception Description ModelAndViewDefiningException Exception to be thrown on error conditions that should forward to a specific view with a specific model.NoHandlerFoundException By default when the DispatcherServlet can't find a handler for a request it sends a 404 response.