org.apache.tapestry.services.impl
Class RequestLocaleManagerImpl
java.lang.Object
org.apache.tapestry.services.impl.RequestLocaleManagerImpl
- All Implemented Interfaces:
- RequestLocaleManager
- public class RequestLocaleManagerImpl
- extends java.lang.Object
- implements RequestLocaleManager
Identifies the Locale provided by the client (either in a Tapestry-specific cookie, or
interpolated from the HTTP header. TODO: Add the ability to "filter down" Locales down to a
predifined set (specified using some form of HiveMInd configuration).
- Since:
- 4.0
- Author:
- Howard Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestLocaleManagerImpl
public RequestLocaleManagerImpl()
extractLocaleForCurrentRequest
public java.util.Locale extractLocaleForCurrentRequest()
- Description copied from interface:
RequestLocaleManager
- Determines the locale to use for processing the current request. The value is returned, but
also stored as
org.apache.tapestry.services.RequestGlobals#setIncomingLocale(Locale)
.
- Specified by:
extractLocaleForCurrentRequest
in interface RequestLocaleManager
persistLocale
public void persistLocale()
- Description copied from interface:
RequestLocaleManager
- Stores the thread's locale as a cookie for later use.
- Specified by:
persistLocale
in interface RequestLocaleManager
setCookieSource
public void setCookieSource(CookieSource source)
setRequest
public void setRequest(WebRequest request)
setThreadLocale
public void setThreadLocale(org.apache.hivemind.service.ThreadLocale threadLocale)