fr.paris.lutece.portal.web.l10n
Class LocaleService

java.lang.Object
  extended by fr.paris.lutece.portal.web.l10n.LocaleService

public class LocaleService
extends java.lang.Object

LocaleService


Constructor Summary
LocaleService()
           
 
Method Summary
static java.util.Locale getUserSelectedLocale(javax.servlet.http.HttpServletRequest request)
          Get a Locale selected by the user in front office
static void setUserSelectedLocale(javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
          Set the locale selected by the user in the front office.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleService

public LocaleService()
Method Detail

setUserSelectedLocale

public static void setUserSelectedLocale(javax.servlet.http.HttpServletRequest request,
                                         java.util.Locale locale)
Set the locale selected by the user in the front office. The user may select a language without been authenticated.

Parameters:
request - The request
locale - The locale

getUserSelectedLocale

public static java.util.Locale getUserSelectedLocale(javax.servlet.http.HttpServletRequest request)
Get a Locale selected by the user in front office

Parameters:
request - The HTTP request
Returns:
The locale selected, or the default jvm locale if no locale has been selected


Copyright © 2008 Mairie de Paris. All Rights Reserved.