Uses of Interface
org.springframework.web.servlet.View
Package
Description
Support for testing Spring MVC applications via
WebTestClient
with MockMvc
for server request
handling.Contains built-in
MockMvcBuilder
implementations.Provides servlets that integrate with the application context
infrastructure, and the core interfaces and classes for the
Spring web MVC framework.
Annotation-based setup for Spring MVC.
Standard controller implementations for the Servlet MVC framework that comes with
Spring.
Provides standard View and ViewResolver implementations,
including abstract base classes for custom implementations.
Support classes for document generation,
providing View implementations for PDF and Excel.
Support classes for feed generation, providing View implementations for Atom and RSS.
Support classes for the integration of
FreeMarker
as Spring web view technology.
Support classes for the integration of
Groovy Templates as Spring web view technology.
Support classes for providing a View implementation based on JSON serialization.
Support classes for views based on the JSR-223 script engine abstraction
(as included in Java 6+), e.g.
Support classes for providing a View implementation based on XML Marshalling.
Support classes for XSLT,
providing a View implementation for XSLT stylesheets.
-
Uses of View in org.springframework.test.web.servlet.client
Modifier and TypeMethodDescriptionMockMvcWebTestClient.ControllerSpec.singleView
(View view) Set up a singleViewResolver
with a fixed view. -
Uses of View in org.springframework.test.web.servlet.setup
Modifier and TypeMethodDescriptionStandaloneMockMvcBuilder.setSingleView
(View view) Sets up a singleViewResolver
that always returns the provided view instance. -
Uses of View in org.springframework.web.servlet
Modifier and TypeInterfaceDescriptioninterface
Provides additional information about a View such as whether it performs redirects.Modifier and TypeMethodDescriptionModelAndView.getView()
Return the View object, ornull
if we are using a view name to be resolved by the DispatcherServlet via a ViewResolver.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).ViewResolver.resolveViewName
(String viewName, Locale locale) Resolve the given view by name.Modifier and TypeMethodDescriptionvoid
Set a View object for this ModelAndView.ModifierConstructorDescriptionModelAndView
(View view) Convenient constructor when there is no model data to expose.ModelAndView
(View view, String modelName, Object modelObject) Convenient constructor to take a single model object.ModelAndView
(View view, Map<String, ?> model) Create a new ModelAndView given a View object and a model. -
Uses of View in org.springframework.web.servlet.config.annotation
Modifier and TypeMethodDescriptionvoid
ViewResolverRegistry.enableContentNegotiation
(boolean useNotAcceptableStatus, View... defaultViews) Enable use of aContentNegotiatingViewResolver
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 aContentNegotiatingViewResolver
to front all other configured view resolvers and select among all selected Views based on media types requested by the client (e.g. -
Uses of View in org.springframework.web.servlet.mvc
Modifier and TypeMethodDescriptionParameterizableViewController.getView()
Return the View object, ornull
if we are using a view name to be resolved by the DispatcherServlet via a ViewResolver. -
Uses of View in org.springframework.web.servlet.view
Modifier and TypeClassDescriptionclass
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
Abstract base class for URL-based views.class
Abstract base class forView
implementations.class
Wrapper for a JSP or other resource within the same web application.class
Specialization ofInternalResourceView
for JSTL pages, i.e.class
View that redirects to an absolute, context relative, or current request relative URL.Modifier and TypeMethodDescriptionprotected View
UrlBasedViewResolver.applyLifecycleMethods
(String viewName, AbstractUrlBasedView view) Apply the containingApplicationContext
's lifecycle methods to the givenView
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
Subclasses must implement this method, building a View object for the specified view.protected View
Deprecated.protected View
Delegates tobuildView
for creating a new instance of the specified view class.protected View
Deprecated.AbstractCachingViewResolver.resolveViewName
(String viewName, Locale locale) BeanNameViewResolver.resolveViewName
(String viewName, Locale locale) ContentNegotiatingViewResolver.resolveViewName
(String viewName, Locale locale) ViewResolverComposite.resolveViewName
(String viewName, Locale locale) Modifier and TypeMethodDescriptionboolean
Indicates whether the given view should be cached.Modifier and TypeMethodDescriptionvoid
ContentNegotiatingViewResolver.setDefaultViews
(List<View> defaultViews) Set the default views to use when a more specific view can not be obtained from theViewResolver
chain. -
Uses of View in org.springframework.web.servlet.view.document
Modifier and TypeClassDescriptionclass
Abstract superclass for PDF views that operate on an existing document with an AcroForm.class
Abstract superclass for PDF views.class
Convenient superclass for Excel document views in traditional XLS format.class
Convenient superclass for Excel document views in the Office 2007 XLSX format, using POI's streaming variant.class
Convenient superclass for Excel document views in the Office 2007 XLSX format (as supported by POI-OOXML). -
Uses of View in org.springframework.web.servlet.view.feed
Modifier and TypeClassDescriptionclass
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
Abstract superclass for RSS Feed views, using the ROME package. -
Uses of View in org.springframework.web.servlet.view.freemarker
-
Uses of View in org.springframework.web.servlet.view.groovy
Modifier and TypeClassDescriptionclass
AnAbstractTemplateView
subclass based on Groovy XML/XHTML markup templates. -
Uses of View in org.springframework.web.servlet.view.json
Modifier and TypeClassDescriptionclass
Abstract base class for Jackson based and content type independentAbstractView
implementations.class
Spring MVCView
that renders JSON content by serializing the model for the current request using Jackson 2'sObjectMapper
. -
Uses of View in org.springframework.web.servlet.view.script
Modifier and TypeClassDescriptionclass
AnAbstractUrlBasedView
subclass designed to run any template library based on a JSR-223 script engine. -
Uses of View in org.springframework.web.servlet.view.xml
Modifier and TypeClassDescriptionclass
Spring MVCView
that renders XML content by serializing the model for the current request using Jackson 2'sXmlMapper
.class
Spring-MVCView
that allows for response context to be rendered as the result of marshalling by aMarshaller
. -
Uses of View in org.springframework.web.servlet.view.xslt
Modifier and TypeClassDescriptionclass
XSLT-driven View that allows for response context to be rendered as the result of an XSLT transformation.