org.displaytag.localization
Interface LocaleResolver

All Known Implementing Classes:
I18nJstlAdapter, I18nSpringAdapter, I18nStrutsAdapter, I18nWebworkAdapter

public interface LocaleResolver

Handle the selection of the user locale. By default request.getLocale() is used, but specific implementations can use different way to determine the locale, for example looking at session variables or cookies.

Version:
$Revision: 1081 $ ($Author: fgiust $)
Author:
Fabrizio Giustina

Method Summary
 java.util.Locale resolveLocale(javax.servlet.http.HttpServletRequest request)
          Returns the Locale choosen for the given request.
 

Method Detail

resolveLocale

java.util.Locale resolveLocale(javax.servlet.http.HttpServletRequest request)
Returns the Locale choosen for the given request.

Parameters:
request - HttpServletRequest
Returns:
a valid Locale (null should never be returned)


Copyright © 2002-2007 the Displaytag team. All Rights Reserved.