org.apache.tapestry.services.impl
Class RequestLocaleManagerImpl
java.lang.Object
org.apache.tapestry.services.impl.RequestLocaleManagerImpl
- All Implemented Interfaces:
- RequestLocaleManager
public class RequestLocaleManagerImpl
- extends 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 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 locale.
- Specified by:
extractLocaleForCurrentRequest
in interface RequestLocaleManager
- Returns:
- The
Locale
to be used for this request.
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(String acceptedLocales)
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.