Package org.apache.sling.i18n
Interface LocaleResolver
- 
- All Known Implementing Classes:
 DefaultLocaleResolver
@Deprecated public interface LocaleResolverDeprecated.TheRequestLocaleResolvershould be used instead.TheLocaleResolverservice interface may be implemented by a service registered under this name to allow the resolution of the requestLocaleto apply.This interface is intended to be implemented by providers knowing how to resolve one or more
Locales applicable to handle the request.Only a single
LocaleResolverservice is currently used. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.List<java.util.Locale>resolveLocale(SlingHttpServletRequest request)Deprecated.Return a non-nullbut possiby empty list ofLocaleinstances to consider for localization of the current request. 
 - 
 
- 
- 
Method Detail
- 
resolveLocale
java.util.List<java.util.Locale> resolveLocale(SlingHttpServletRequest request)
Deprecated.Return a non-nullbut possiby empty list ofLocaleinstances to consider for localization of the current request. The list returned is assumed to be ordered by preference where the first entry is the preferedLocaleand the last entry is the least preferedLocale.Returning an empty list is equivalent to returning a singleton list whose single entry is the
ResourceBundleProvider.getDefaultLocale().- Parameters:
 request- TheSlingHttpServletRequestproviding hints and information for theLocaleresolution.- Returns:
 - The list of 
Locales to use for internationalization of request processing 
 
 - 
 
 -