接口的使用
org.springframework.web.servlet.View
使用View的程序包 程序包 说明 org.springframework.test.web.servlet.setup Contains built-inMockMvcBuilderimplementations.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. using JavaScript via Nashorn on JDK 8.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.org.springframework.test.web.servlet.setup中View的使用
参数类型为View的org.springframework.test.web.servlet.setup中的方法 修饰符和类型 方法 说明 StandaloneMockMvcBuilderStandaloneMockMvcBuilder. setSingleView(View view)Sets up a singleViewResolverthat always returns the provided view instance.org.springframework.web.servlet中View的使用
org.springframework.web.servlet中View的子接口 修饰符和类型 接口 说明 interfaceSmartViewProvides additional information about a View such as whether it performs redirects.返回View的org.springframework.web.servlet中的方法 修饰符和类型 方法 说明 ViewModelAndView. getView()Return the View object, ornullif we are using a view name to be resolved by the DispatcherServlet via a ViewResolver.protected ViewDispatcherServlet. resolveViewName(String viewName, Map<String,Object> model, Locale locale, HttpServletRequest request)Resolve the given view name into a View object (to be rendered).ViewViewResolver. resolveViewName(String viewName, Locale locale)Resolve the given view by name.参数类型为View的org.springframework.web.servlet中的方法 修饰符和类型 方法 说明 voidModelAndView. setView(View view)Set a View object for this ModelAndView.参数类型为View的org.springframework.web.servlet中的构造器 构造器 说明 ModelAndView(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.org.springframework.web.servlet.config.annotation中View的使用
参数类型为View的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 voidViewResolverRegistry. enableContentNegotiation(boolean useNotAcceptableStatus, View... defaultViews)Enable use of aContentNegotiatingViewResolverto front all other configured view resolvers and select among all selected Views based on media types requested by the client (e.g. in the Accept header).voidViewResolverRegistry. enableContentNegotiation(View... defaultViews)Enable use of aContentNegotiatingViewResolverto front all other configured view resolvers and select among all selected Views based on media types requested by the client (e.g. in the Accept header).org.springframework.web.servlet.mvc中View的使用
返回View的org.springframework.web.servlet.mvc中的方法 修饰符和类型 方法 说明 ViewParameterizableViewController. getView()Return the View object, ornullif we are using a view name to be resolved by the DispatcherServlet via a ViewResolver.参数类型为View的org.springframework.web.servlet.mvc中的方法 修饰符和类型 方法 说明 voidParameterizableViewController. setView(View view)Set a View object for the ModelAndView to return.org.springframework.web.servlet.view中View的使用
实现View的org.springframework.web.servlet.view中的类 修饰符和类型 类 说明 classAbstractTemplateViewAdapter 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.classAbstractUrlBasedViewAbstract base class for URL-based views.classAbstractViewAbstract base class forViewimplementations.classInternalResourceViewWrapper for a JSP or other resource within the same web application.classJstlViewSpecialization ofInternalResourceViewfor JSTL pages, i.e.classRedirectViewView that redirects to an absolute, context relative, or current request relative URL.返回View的org.springframework.web.servlet.view中的方法 修饰符和类型 方法 说明 protected ViewUrlBasedViewResolver. applyLifecycleMethods(String viewName, AbstractUrlBasedView view)Apply the containingApplicationContext's lifecycle methods to the givenViewinstance, if such a context is available.protected ViewAbstractCachingViewResolver. createView(String viewName, Locale locale)Create the actual View object.protected ViewUrlBasedViewResolver. createView(String viewName, Locale locale)Overridden to implement check for "redirect:" prefix.protected abstract ViewAbstractCachingViewResolver. loadView(String viewName, Locale locale)Subclasses must implement this method, building a View object for the specified view.protected ViewResourceBundleViewResolver. loadView(String viewName, Locale locale)protected ViewUrlBasedViewResolver. loadView(String viewName, Locale locale)Delegates tobuildViewfor creating a new instance of the specified view class.protected ViewXmlViewResolver. loadView(String viewName, Locale locale)ViewAbstractCachingViewResolver. resolveViewName(String viewName, Locale locale)ViewBeanNameViewResolver. resolveViewName(String viewName, Locale locale)ViewContentNegotiatingViewResolver. resolveViewName(String viewName, Locale locale)ViewViewResolverComposite. resolveViewName(String viewName, Locale locale)返回变量类型为View的类型的org.springframework.web.servlet.view中的方法 修饰符和类型 方法 说明 List<View>ContentNegotiatingViewResolver. getDefaultViews()参数类型为View的org.springframework.web.servlet.view中的方法 修饰符和类型 方法 说明 booleanAbstractCachingViewResolver.CacheFilter. filter(View view, String viewName, Locale locale)Indicates whether the given view should be cached.类型变量类型为View的org.springframework.web.servlet.view中的方法参数 修饰符和类型 方法 说明 voidContentNegotiatingViewResolver. setDefaultViews(List<View> defaultViews)Set the default views to use when a more specific view can not be obtained from theViewResolverchain.org.springframework.web.servlet.view.document中View的使用
实现View的org.springframework.web.servlet.view.document中的类 修饰符和类型 类 说明 classAbstractPdfStamperViewAbstract superclass for PDF views that operate on an existing document with an AcroForm.classAbstractPdfViewAbstract superclass for PDF views.classAbstractXlsViewConvenient superclass for Excel document views in traditional XLS format.classAbstractXlsxStreamingViewConvenient superclass for Excel document views in the Office 2007 XLSX format, using POI's streaming variant.classAbstractXlsxViewConvenient superclass for Excel document views in the Office 2007 XLSX format (as supported by POI-OOXML).org.springframework.web.servlet.view.feed中View的使用
实现View的org.springframework.web.servlet.view.feed中的类 修饰符和类型 类 说明 classAbstractAtomFeedViewAbstract superclass for Atom Feed views, using the ROME package.classAbstractFeedView<T extends com.rometools.rome.feed.WireFeed>Abstract base class for Atom and RSS Feed views, using the ROME package.classAbstractRssFeedViewAbstract superclass for RSS Feed views, using the ROME package.org.springframework.web.servlet.view.freemarker中View的使用
实现View的org.springframework.web.servlet.view.freemarker中的类 修饰符和类型 类 说明 classFreeMarkerViewView using the FreeMarker template engine.org.springframework.web.servlet.view.groovy中View的使用
实现View的org.springframework.web.servlet.view.groovy中的类 修饰符和类型 类 说明 classGroovyMarkupViewAnAbstractTemplateViewsubclass based on Groovy XML/XHTML markup templates.org.springframework.web.servlet.view.json中View的使用
实现View的org.springframework.web.servlet.view.json中的类 修饰符和类型 类 说明 classAbstractJackson2ViewAbstract base class for Jackson based and content type independentAbstractViewimplementations.classMappingJackson2JsonViewSpring MVCViewthat renders JSON content by serializing the model for the current request using Jackson 2'sObjectMapper.org.springframework.web.servlet.view.script中View的使用
实现View的org.springframework.web.servlet.view.script中的类 修饰符和类型 类 说明 classScriptTemplateViewAnAbstractUrlBasedViewsubclass designed to run any template library based on a JSR-223 script engine.org.springframework.web.servlet.view.tiles3中View的使用
实现View的org.springframework.web.servlet.view.tiles3中的类 修饰符和类型 类 说明 classTilesViewViewimplementation that renders through the Tiles Request API.org.springframework.web.servlet.view.xml中View的使用
实现View的org.springframework.web.servlet.view.xml中的类 修饰符和类型 类 说明 classMappingJackson2XmlViewSpring MVCViewthat renders XML content by serializing the model for the current request using Jackson 2'sXmlMapper.classMarshallingViewSpring-MVCViewthat allows for response context to be rendered as the result of marshalling by aMarshaller.org.springframework.web.servlet.view.xslt中View的使用
实现View的org.springframework.web.servlet.view.xslt中的类 修饰符和类型 类 说明 classXsltViewXSLT-driven View that allows for response context to be rendered as the result of an XSLT transformation.