| Package | Description | 
|---|---|
| org.springframework.test.web.servlet.client | 
 Support for testing Spring MVC applications via
  
WebTestClient
 with MockMvc for server request
 handling. | 
| org.springframework.test.web.servlet.setup | 
 Contains built-in  
MockMvcBuilder implementations. | 
| 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.config.annotation | 
 Annotation-based setup for Spring MVC. 
 | 
| org.springframework.web.servlet.mvc | 
 Standard controller implementations for the Servlet MVC framework that comes with
 Spring. 
 | 
| org.springframework.web.servlet.view | 
 Provides standard View and ViewResolver implementations,
 including abstract base classes for custom implementations. 
 | 
| org.springframework.web.servlet.view.document | 
 Support classes for document generation,
 providing View implementations for PDF and Excel. 
 | 
| org.springframework.web.servlet.view.feed | 
 Support classes for feed generation, providing View implementations for Atom and RSS. 
 | 
| org.springframework.web.servlet.view.freemarker | 
 Support classes for the integration of
 FreeMarker
 as Spring web view technology. 
 | 
| org.springframework.web.servlet.view.groovy | 
 Support classes for the integration of
 
 Groovy Templates as Spring web view technology. 
 | 
| org.springframework.web.servlet.view.json | 
 Support classes for providing a View implementation based on JSON serialization. 
 | 
| org.springframework.web.servlet.view.script | 
 Support classes for views based on the JSR-223 script engine abstraction
 (as included in Java 6+), e.g. 
 | 
| org.springframework.web.servlet.view.tiles3 | 
 Support classes for the integration of
 Tiles 3
 (the standalone version of Tiles) as Spring web view technology. 
 | 
| org.springframework.web.servlet.view.xml | 
 Support classes for providing a View implementation based on XML Marshalling. 
 | 
| org.springframework.web.servlet.view.xslt | 
 Support classes for XSLT,
 providing a View implementation for XSLT stylesheets. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
MockMvcWebTestClient.ControllerSpec | 
MockMvcWebTestClient.ControllerSpec.singleView(View view)
Set up a single  
ViewResolver with a fixed view. | 
| Modifier and Type | Method and Description | 
|---|---|
StandaloneMockMvcBuilder | 
StandaloneMockMvcBuilder.setSingleView(View view)
Sets up a single  
ViewResolver that always returns the provided
 view instance. | 
| Modifier and Type | Interface and Description | 
|---|---|
interface  | 
SmartView
Provides additional information about a View such as whether it
 performs redirects. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
View | 
ModelAndView.getView()
Return the View object, or  
null if we are using a view name
 to be resolved by the DispatcherServlet via a ViewResolver. | 
View | 
ViewResolver.resolveViewName(String viewName,
               Locale locale)
Resolve the given view by name. 
 | 
protected View | 
DispatcherServlet.resolveViewName(String viewName,
               Map<String,Object> model,
               Locale locale,
               HttpServletRequest request)
Resolve the given view name into a View object (to be rendered). 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
ModelAndView.setView(View view)
Set a View object for this ModelAndView. 
 | 
| Constructor and Description | 
|---|
ModelAndView(View view)
Convenient constructor when there is no model data to expose. 
 | 
ModelAndView(View view,
            Map<String,?> model)
Create a new ModelAndView given a View object and a model. 
 | 
ModelAndView(View view,
            String modelName,
            Object modelObject)
Convenient constructor to take a single model object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
ViewResolverRegistry.enableContentNegotiation(boolean useNotAcceptableStatus,
                        View... defaultViews)
Enable use of a  
ContentNegotiatingViewResolver to front all other
 configured view resolvers and select among all selected Views based on
 media types requested by the client (e.g. | 
void | 
ViewResolverRegistry.enableContentNegotiation(View... defaultViews)
Enable use of a  
ContentNegotiatingViewResolver to front all other
 configured view resolvers and select among all selected Views based on
 media types requested by the client (e.g. | 
| Modifier and Type | Method and Description | 
|---|---|
View | 
ParameterizableViewController.getView()
Return the View object, or  
null if we are using a view name
 to be resolved by the DispatcherServlet via a ViewResolver. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
ParameterizableViewController.setView(View view)
Set a View object for the ModelAndView to return. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
AbstractTemplateView
Adapter base class for template-based view technologies such as FreeMarker,
 with the ability to use request and session attributes in their model and
 the option to expose helper objects for Spring's FreeMarker macro library. 
 | 
class  | 
AbstractUrlBasedView
Abstract base class for URL-based views. 
 | 
class  | 
AbstractView
Abstract base class for  
View
 implementations. | 
class  | 
InternalResourceView
Wrapper for a JSP or other resource within the same web application. 
 | 
class  | 
JstlView
Specialization of  
InternalResourceView for JSTL pages,
 i.e. | 
class  | 
RedirectView
View that redirects to an absolute, context relative, or current request
 relative URL. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected View | 
UrlBasedViewResolver.applyLifecycleMethods(String viewName,
                     AbstractUrlBasedView view)
Apply the containing  
ApplicationContext's lifecycle methods
 to the given View instance, if such a context is available. | 
protected View | 
AbstractCachingViewResolver.createView(String viewName,
          Locale locale)
Create the actual View object. 
 | 
protected View | 
UrlBasedViewResolver.createView(String viewName,
          Locale locale)
Overridden to implement check for "redirect:" prefix. 
 | 
protected abstract View | 
AbstractCachingViewResolver.loadView(String viewName,
        Locale locale)
Subclasses must implement this method, building a View object
 for the specified view. 
 | 
protected View | 
XmlViewResolver.loadView(String viewName,
        Locale locale)
Deprecated.  
  | 
protected View | 
UrlBasedViewResolver.loadView(String viewName,
        Locale locale)
Delegates to  
buildView for creating a new instance of the
 specified view class. | 
protected View | 
ResourceBundleViewResolver.loadView(String viewName,
        Locale locale)
Deprecated.  
  | 
View | 
BeanNameViewResolver.resolveViewName(String viewName,
               Locale locale)  | 
View | 
AbstractCachingViewResolver.resolveViewName(String viewName,
               Locale locale)  | 
View | 
ContentNegotiatingViewResolver.resolveViewName(String viewName,
               Locale locale)  | 
View | 
ViewResolverComposite.resolveViewName(String viewName,
               Locale locale)  | 
| Modifier and Type | Method and Description | 
|---|---|
List<View> | 
ContentNegotiatingViewResolver.getDefaultViews()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
AbstractCachingViewResolver.CacheFilter.filter(View view,
      String viewName,
      Locale locale)
Indicates whether the given view should be cached. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
ContentNegotiatingViewResolver.setDefaultViews(List<View> defaultViews)
Set the default views to use when a more specific view can not be obtained
 from the  
ViewResolver chain. | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
AbstractPdfStamperView
Abstract superclass for PDF views that operate on an existing
 document with an AcroForm. 
 | 
class  | 
AbstractPdfView
Abstract superclass for PDF views. 
 | 
class  | 
AbstractXlsView
Convenient superclass for Excel document views in traditional XLS format. 
 | 
class  | 
AbstractXlsxStreamingView
Convenient superclass for Excel document views in the Office 2007 XLSX format,
 using POI's streaming variant. 
 | 
class  | 
AbstractXlsxView
Convenient superclass for Excel document views in the Office 2007 XLSX format
 (as supported by POI-OOXML). 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
AbstractAtomFeedView
Abstract superclass for Atom Feed views, using the
 ROME package. 
 | 
class  | 
AbstractFeedView<T extends com.rometools.rome.feed.WireFeed>
Abstract base class for Atom and RSS Feed views, using the
 ROME package. 
 | 
class  | 
AbstractRssFeedView
Abstract superclass for RSS Feed views, using the
 ROME package. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
FreeMarkerView
View using the FreeMarker template engine. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
GroovyMarkupView
An  
AbstractTemplateView subclass based on Groovy XML/XHTML markup templates. | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
AbstractJackson2View
Abstract base class for Jackson based and content type independent
  
AbstractView implementations. | 
class  | 
MappingJackson2JsonView
Spring MVC  
View that renders JSON content by serializing the model for the current request
 using Jackson 2's ObjectMapper. | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
ScriptTemplateView
An  
AbstractUrlBasedView subclass designed to run any template library
 based on a JSR-223 script engine. | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
TilesView
View implementation that renders
 through the Tiles Request API. | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
MappingJackson2XmlView
Spring MVC  
View that renders XML content by serializing the model for the current request
 using Jackson 2's XmlMapper. | 
class  | 
MarshallingView
Spring-MVC  
View that allows for response context to be rendered as the result
 of marshalling by a Marshaller. | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
XsltView
XSLT-driven View that allows for response context to be rendered as the
 result of an XSLT transformation. 
 |