Provides the current {@link java.util.Locale}.
DeltaSpike provides a default implementation which returns the current system Locale.
An application can provide an own implementation as @Alternative. This could e.g. examine a JSF View or the Locale of any currently logged in User.
request.getLocale()
is used, but specific implementations can use different way to determine the locale, for example looking at session variables or cookies.
@author Fabrizio Giustina
@version $Revision: 1193 $ ($Author: fgiust $)
This interface allows for implementations based on request, session, cookies, etc. The default implementation is AcceptHeaderLocaleResolver, simply using the request's locale provided by the respective HTTP header.
Use RequestContext.getLocale()
to retrieve the current locale in controllers or views, independent of the actual resolution strategy.
@author Juergen Hoeller
@since 27.02.2003
@see org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver
@see org.springframework.web.servlet.support.RequestContext#getLocale
|
|