org.apache.tapestry.services.impl
Class RequestLocaleManagerImpl

java.lang.Object
  extended by 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

Constructor Summary
RequestLocaleManagerImpl()
           
 
Method Summary
 Locale extractLocaleForCurrentRequest()
          Determines the locale to use for processing the current request.
 void initializeService()
           
 void persistLocale()
          Stores the thread's locale as a cookie for later use.
 void setAcceptedLocales(String acceptedLocales)
           
 void setCookieSource(CookieSource source)
           
 void setRequest(WebRequest request)
           
 void setThreadLocale(org.apache.hivemind.service.ThreadLocale threadLocale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestLocaleManagerImpl

public RequestLocaleManagerImpl()
Method Detail

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.