org.springframework.web.servlet.view.velocity
Class VelocityView.LocaleAwareDateTool

java.lang.Object
  extended by org.apache.velocity.tools.generic.DateTool
      extended by org.springframework.web.servlet.view.velocity.VelocityView.LocaleAwareDateTool
Enclosing class:
VelocityView

private static class VelocityView.LocaleAwareDateTool
extends org.apache.velocity.tools.generic.DateTool

Subclass of DateTool from Velocity Tools, using a passed-in Locale (usually the RequestContext Locale) instead of the default Locale.N

See Also:
RequestContextUtils.getLocale(javax.servlet.http.HttpServletRequest)

Field Summary
private  java.util.Locale locale
           
 
Fields inherited from class org.apache.velocity.tools.generic.DateTool
DEFAULT_FORMAT, DEFAULT_FORMAT_KEY, DEFAULT_LOCALE_KEY, LOCK_CONFIG_KEY
 
Constructor Summary
private VelocityView.LocaleAwareDateTool(java.util.Locale locale)
           
 
Method Summary
 java.util.Locale getLocale()
           
 
Methods inherited from class org.apache.velocity.tools.generic.DateTool
configure, configure, format, format, format, format, format, format, format, get, get, getCalendar, getDate, getDateFormat, getDateFormat, getDateFormat, getDay, getDay, getFormat, getMonth, getMonth, getStyleAsInt, getSystemCalendar, getSystemDate, getSystemTime, getTimeZone, getValue, getValue, getValue, getYear, getYear, setFormat, setLocale, toCalendar, toCalendar, toDate, toDate, toDate, toDate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

locale

private final java.util.Locale locale
Constructor Detail

VelocityView.LocaleAwareDateTool

private VelocityView.LocaleAwareDateTool(java.util.Locale locale)
Method Detail

getLocale

public java.util.Locale getLocale()
Overrides:
getLocale in class org.apache.velocity.tools.generic.DateTool