Top Description Interfaces Classes
module spring.webmvc

Package org.springframework.web.servlet.mvc

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

Standard controller implementations for the Servlet MVC framework that comes with Spring. Provides various controller styles, including an annotation-based model.

Interface Summary

Modifier and TypeInterface and Description
public interface
Controller

Base Controller interface, representing a component that receives HttpServletRequest and HttpServletResponse instances just like a HttpServlet but is able to participate in an MVC workflow.

public interface
LastModified

Deprecated as of 5.3.9 in favor of using the checkNotModified methods in org.springframework.web.context.request.WebRequest, or from an annotated controller method, returning a org.springframework.http.ResponseEntity with an "ETag" and/or "Last-Modified" headers set.
Supports last-modified HTTP requests to facilitate content caching.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractController

Convenient superclass for controller implementations, using the Template Method design pattern.

public abstract class
AbstractUrlViewController

Abstract base class for Controllers that return a view name based on the request URL.

public class
public class
ParameterizableViewController

Trivial controller that always returns a pre-configured view and optionally sets the response status code.

public class
ServletForwardingController

Spring Controller implementation that forwards to a named servlet, i.e. the "servlet-name" in web.xml rather than a URL path mapping.

public class
ServletWrappingController

Spring Controller implementation that wraps a servlet instance which it manages internally.

public class
SimpleControllerHandlerAdapter

Adapter to use the plain Controller workflow interface with the generic org.springframework.web.servlet.DispatcherServlet.

public class
UrlFilenameViewController

Simple Controller implementation that transforms the virtual path of a URL into a view name and returns that view.

public class
WebContentInterceptor

Handler interceptor that checks the request for supported methods and a required session and prepares the response by applying the configured cache settings.