Top Description Interfaces Classes
module spring.webmvc

Package org.springframework.web.servlet

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

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

Modifier and TypeInterface and Description
public interface
AsyncHandlerInterceptor

Extends HandlerInterceptor with a callback method invoked after the start of asynchronous request handling.

public interface
FlashMapManager

A strategy interface for retrieving and saving FlashMap instances.

public interface
HandlerAdapter

MVC framework SPI, allowing parameterization of the core MVC workflow.

public interface
HandlerExceptionResolver

Interface to be implemented by objects that can resolve exceptions thrown during handler mapping or execution, in the typical case to error views.

public interface
HandlerInterceptor

Workflow interface that allows for customized handler execution chains.

public interface
HandlerMapping

Interface to be implemented by objects that define a mapping between requests and handler objects.

public interface
LocaleContextResolver

Extension of LocaleResolver that adds support for a rich locale context (potentially including locale and time zone information).

public interface
LocaleResolver

Interface for web-based locale resolution strategies that allows for both locale resolution via the request and locale modification via request and response.

public interface
RequestToViewNameTranslator

Strategy interface for translating an incoming jakarta.servlet.http.HttpServletRequest into a logical view name when no view name is explicitly supplied.

public interface
SmartView

Provides additional information about a View such as whether it performs redirects.

public interface
ThemeResolver

Deprecated since 6.0. as of 6.0 in favor of using CSS, without direct replacement
Interface for web-based theme resolution strategies that allows for both theme resolution via the request and theme modification via request and response.
public interface
View

MVC View for a web interaction.

public interface
ViewResolver

Interface to be implemented by objects that can resolve views by name.

Class Summary

Modifier and TypeClass and Description
public class
DispatcherServlet

Central dispatcher for HTTP request handlers/controllers, e.g. for web UI controllers or HTTP-based remote service exporters.

public class
FlashMap

A FlashMap provides a way for one request to store attributes intended for use in another.

public abstract class
FrameworkServlet

Base servlet for Spring's web framework.

public class
HandlerExecutionChain

Handler execution chain, consisting of handler object and any handler interceptors.

public abstract class
HttpServletBean

Simple extension of jakarta.servlet.http.HttpServlet which treats its config parameters (init-param entries within the servlet tag in web.xml) as bean properties.

public class
ModelAndView

Holder for both Model and View in the web MVC framework.

public class
ModelAndViewDefiningException

Exception to be thrown on error conditions that should forward to a specific view with a specific model.

public class
NoHandlerFoundException

By default, when the DispatcherServlet can't find a handler for a request it sends a 404 response.