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

java.lang.Object
  extended by org.apache.velocity.tools.generic.SafeConfig
      extended by org.apache.velocity.tools.generic.LocaleConfig
          extended by org.apache.velocity.tools.generic.FormatConfig
              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_KEY, DEFAULT_LOCALE_KEY, TIMEZONE_KEY
 
Fields inherited from class org.apache.velocity.tools.generic.FormatConfig
DEFAULT_FORMAT, FORMAT_KEY
 
Fields inherited from class org.apache.velocity.tools.generic.LocaleConfig
DEFAULT_LOCALE
 
Fields inherited from class org.apache.velocity.tools.generic.SafeConfig
LOCK_CONFIG_KEY, OLD_LOCK_CONFIG_KEY, SAFE_MODE_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, format, format, format, format, format, format, format, get, get, getCalendar, getDate, getDateFormat, getDateFormat, getDateFormat, getDay, getDay, getMonth, getMonth, getStyleAsInt, getSystemCalendar, getSystemDate, getSystemTime, getTimeZone, getValue, getValue, getValue, getYear, getYear, setTimeZone, toCalendar, toCalendar, toDate, toDate, toDate, toDate, toString
 
Methods inherited from class org.apache.velocity.tools.generic.FormatConfig
getFormat, setFormat
 
Methods inherited from class org.apache.velocity.tools.generic.LocaleConfig
setLocale
 
Methods inherited from class org.apache.velocity.tools.generic.SafeConfig
configure, isConfigLocked, isSafeMode, setLockConfig, setSafeMode
 
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.LocaleConfig