Version 4.10.0

Class TimeZoneSourceImpl

  extended by hirondelle.web4j.request.TimeZoneSourceImpl
All Implemented Interfaces:

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.

Constructor Summary
Method Summary
 TimeZone get(HttpServletRequest aRequest)
          See class comment.
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public TimeZoneSourceImpl()
Method Detail


public TimeZone get(HttpServletRequest aRequest)
See class comment.

Specified by:
get in interface TimeZoneSource

Version 4.10.0

Copyright Hirondelle Systems. Published October 19, 2013 - User Guide - All Docs.