Save This Page
Home » spring-framework-2.5.4 » org.springframework » web » servlet » view » [javadoc | source]
org.springframework.web.servlet.view
public class: AbstractTemplateViewResolver [javadoc | source]
java.lang.Object
   org.springframework.context.support.ApplicationObjectSupport
      org.springframework.web.context.support.WebApplicationObjectSupport
         org.springframework.web.servlet.view.AbstractCachingViewResolver
            org.springframework.web.servlet.view.UrlBasedViewResolver
               org.springframework.web.servlet.view.AbstractTemplateViewResolver

All Implemented Interfaces:
    Ordered, ViewResolver, ServletContextAware, ApplicationContextAware

Direct Known Subclasses:
    VelocityLayoutViewResolver, VelocityViewResolver, FreeMarkerViewResolver

Abstract base class for template view resolvers, in particular for Velocity and FreeMarker views.

Provides a convenient way to specify AbstractTemplateView 's exposure flags for request attributes, session attributes, and Spring's macro helpers.

Fields inherited from org.springframework.web.servlet.view.UrlBasedViewResolver:
REDIRECT_URL_PREFIX,  FORWARD_URL_PREFIX
Fields inherited from org.springframework.context.support.ApplicationObjectSupport:
logger
Method from org.springframework.web.servlet.view.AbstractTemplateViewResolver Summary:
buildView,   requiredViewClass,   setAllowRequestOverride,   setAllowSessionOverride,   setExposeRequestAttributes,   setExposeSessionAttributes,   setExposeSpringMacroHelpers
Methods from org.springframework.web.servlet.view.UrlBasedViewResolver:
buildView,   canHandle,   createView,   getAttributesMap,   getCacheKey,   getContentType,   getOrder,   getPrefix,   getRequestContextAttribute,   getSuffix,   getViewClass,   getViewNames,   initApplicationContext,   isRedirectContextRelative,   isRedirectHttp10Compatible,   loadView,   requiredViewClass,   setAttributes,   setAttributesMap,   setContentType,   setOrder,   setPrefix,   setRedirectContextRelative,   setRedirectHttp10Compatible,   setRequestContextAttribute,   setSuffix,   setViewClass,   setViewNames
Methods from org.springframework.web.servlet.view.AbstractCachingViewResolver:
clearCache,   createView,   getCacheKey,   isCache,   loadView,   removeFromCache,   resolveViewName,   setCache
Methods from org.springframework.web.context.support.WebApplicationObjectSupport:
getServletContext,   getTempDir,   getWebApplicationContext,   initApplicationContext,   initServletContext,   isContextRequired,   setServletContext
Methods from org.springframework.context.support.ApplicationObjectSupport:
getApplicationContext,   getMessageSourceAccessor,   initApplicationContext,   initApplicationContext,   isContextRequired,   requiredContextClass,   setApplicationContext
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.web.servlet.view.AbstractTemplateViewResolver Detail:
 protected AbstractUrlBasedView buildView(String viewName) throws Exception 
 protected Class requiredViewClass() 
 public  void setAllowRequestOverride(boolean allowRequestOverride) 
    Set whether HttpServletRequest attributes are allowed to override (hide) controller generated model attributes of the same name. Default is "false", which causes an exception to be thrown if request attributes of the same name as model attributes are found.
 public  void setAllowSessionOverride(boolean allowSessionOverride) 
    Set whether HttpSession attributes are allowed to override (hide) controller generated model attributes of the same name. Default is "false", which causes an exception to be thrown if session attributes of the same name as model attributes are found.
 public  void setExposeRequestAttributes(boolean exposeRequestAttributes) 
    Set whether all request attributes should be added to the model prior to merging with the template. Default is "false".
 public  void setExposeSessionAttributes(boolean exposeSessionAttributes) 
    Set whether all HttpSession attributes should be added to the model prior to merging with the template. Default is "false".
 public  void setExposeSpringMacroHelpers(boolean exposeSpringMacroHelpers) 
    Set whether to expose a RequestContext for use by Spring's macro library, under the name "springMacroRequestContext". Default is "true".