hirondelle.web4j.request
Class TimeZoneSourceImpl
Object
hirondelle.web4j.request.TimeZoneSourceImpl
- All Implemented Interfaces:
- TimeZoneSource
public final class TimeZoneSourceImpl
- extends Object
- implements TimeZoneSource
Retrieve the TimeZone
stored in any scope under the key
Controller.TIME_ZONE
.
Upon startup, the Controller
will read in the DefaultUserTimeZone
configured in web.xml, and place it in application scope under the key
Controller.TIME_ZONE
, as a TimeZone
object.
If desired, the application programmer can also store a user-specific
TimeZone
in session scope, under the same key. Thus,
this class will first find the user-specific TimeZone, overriding the default
TimeZone stored in application scope.
If any other behavior is desired, then simply provide an alternate implementation of
TimeZoneSource
.
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeZoneSourceImpl
public TimeZoneSourceImpl()
get
public TimeZone get(HttpServletRequest aRequest)
- See class comment.
- Specified by:
get
in interface TimeZoneSource
Copyright Hirondelle Systems. Published October 19, 2013 - User Guide - All Docs.