org.apache.tapestry.services
Interface RequestLocaleManager

All Known Implementing Classes:
RequestLocaleManagerImpl

public interface RequestLocaleManager

Used to determine what is the client-specified locale, if any, for the current request. This may be stored in the request as an HTTP Cookie, or may be interpolated from request headers. Additionally, the "raw" value provided by the client may be filtered down.

Since:
4.0
Author:
Howard Lewis Ship

Method Summary
 Locale extractLocaleForCurrentRequest()
          Determines the locale to use for processing the current request.
 void persistLocale()
          Stores the thread's locale as a cookie for later use.
 

Method Detail

extractLocaleForCurrentRequest

Locale extractLocaleForCurrentRequest()
Determines the locale to use for processing the current request. The value is returned, but also stored as locale.

Returns:
The Locale to be used for this request.

persistLocale

void persistLocale()
Stores the thread's locale as a cookie for later use.



Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.