|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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.velocity.VelocityViewResolver
Convenience subclass of UrlBasedViewResolver that supports VelocityView (i.e. Velocity templates) and custom subclasses of it.
The view class for all views generated by this resolver can be specified via setViewClass. See UrlBasedViewResolver's javadocs for details.
UrlBasedViewResolver.setViewClass(java.lang.Class)
,
UrlBasedViewResolver.setPrefix(java.lang.String)
,
UrlBasedViewResolver.setSuffix(java.lang.String)
,
UrlBasedViewResolver.setRequestContextAttribute(java.lang.String)
,
setVelocityFormatterAttribute(java.lang.String)
,
setDateToolAttribute(java.lang.String)
,
setNumberToolAttribute(java.lang.String)
,
VelocityView
Field Summary |
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
logger |
Constructor Summary | |
VelocityViewResolver()
Sets default viewClass to VelocityView. |
Method Summary | |
protected View |
loadView(java.lang.String viewName,
java.util.Locale locale)
Subclasses must implement this method. |
protected java.lang.Class |
requiredViewClass()
Requires VelocityView. |
void |
setDateToolAttribute(java.lang.String dateToolAttribute)
Set the name of the DateTool helper object to expose in the Velocity context of this view, or null if not needed. |
void |
setNumberToolAttribute(java.lang.String numberToolAttribute)
Set the name of the NumberTool helper object to expose in the Velocity context of this view, or null if not needed. |
void |
setVelocityFormatterAttribute(java.lang.String velocityFormatterAttribute)
Set the name of the VelocityFormatter helper object to expose in the Velocity context of this view, or null if not needed. |
Methods inherited from class org.springframework.web.servlet.view.UrlBasedViewResolver |
getCacheKey, setContentType, setPrefix, setRequestContextAttribute, setSuffix, setViewClass |
Methods inherited from class org.springframework.web.servlet.view.AbstractCachingViewResolver |
isCache, resolveViewName, setCache |
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
getServletContext, getTempDir, getWebApplicationContext |
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VelocityViewResolver()
UrlBasedViewResolver.setViewClass(java.lang.Class)
Method Detail |
protected java.lang.Class requiredViewClass()
requiredViewClass
in class UrlBasedViewResolver
VelocityView
public void setVelocityFormatterAttribute(java.lang.String velocityFormatterAttribute)
VelocityFormatter
public void setDateToolAttribute(java.lang.String dateToolAttribute)
DateTool
public void setNumberToolAttribute(java.lang.String numberToolAttribute)
NumberTool
protected View loadView(java.lang.String viewName, java.util.Locale locale)
AbstractCachingViewResolver
loadView
in class UrlBasedViewResolver
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |