|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.velocity.tools.generic.DateTool
net.sourceforge.xconf.toolbox.spring.SpringDateTool
public class SpringDateTool
Uses Spring's LocaleResolver
and our TimeZoneResolver to
resolve the Locale and TimeZone for each request.
This tool must be configured as a request scope tool in toolbox.xml.
| Field Summary |
|---|
| Fields inherited from class org.apache.velocity.tools.generic.DateTool |
|---|
DEFAULT_FORMAT |
| Constructor Summary | |
|---|---|
SpringDateTool()
|
|
| Method Summary | |
|---|---|
Locale |
getLocale()
|
TimeZone |
getTimeZone()
|
void |
init(Object ctx)
|
| Methods inherited from class org.apache.velocity.tools.generic.DateTool |
|---|
format, format, format, format, format, format, format, get, get, getCalendar, getDate, getDateFormat, getDateFormat, getDateFormat, getFormat, getFormattedDate, getStyleAsInt, getSystemCalendar, getSystemDate, toCalendar, toCalendar, toDate, toDate, toDate, toDate, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SpringDateTool()
| Method Detail |
|---|
public void init(Object ctx)
init in interface org.apache.velocity.tools.view.tools.ViewToolViewTool.init(java.lang.Object)public Locale getLocale()
getLocale in class org.apache.velocity.tools.generic.DateToolRequestContextUtils.getLocale(javax.servlet.http.HttpServletRequest)public TimeZone getTimeZone()
getTimeZone in class org.apache.velocity.tools.generic.DateToolTimeZoneUtils.getTimeZone(HttpServletRequest)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||