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
Service tapestry.request.RequestLocaleManager. Identifies the Locale provided by the client
(either in a Tapestry-specific cookie, or interpolated from the HTTP header.
- 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()
initializeService
public void initializeService()
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)
setAcceptedLocales
public void setAcceptedLocales(java.lang.String acceptedLocales)