public class DefaultLocaleResolver extends java.lang.Object implements LocaleResolver, RequestLocaleResolver
DefaultLocaleResolver resolves the request's Locale by
 calling the ServletRequest.getLocales() method, which generally
 will be the Servlet Container's implementation of this method and thus be
 based on the client's Accept-Language header.| Constructor and Description | 
|---|
| DefaultLocaleResolver() | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.List<java.util.Locale> | resolveLocale(javax.servlet.http.HttpServletRequest request)Return a non- nullbut possibly empty list ofLocaleinstances to consider for localization of the current
 request. | 
| java.util.List<java.util.Locale> | resolveLocale(SlingHttpServletRequest request)Return the Locales provided by the
  ServletRequest.getLocales()method collected in aList. | 
public java.util.List<java.util.Locale> resolveLocale(SlingHttpServletRequest request)
ServletRequest.getLocales() method collected in a
 List.resolveLocale in interface LocaleResolverrequest - The SlingHttpServletRequest providing hints
            and information for the Locale resolution.Locales to use for internationalization
         of request processingpublic java.util.List<java.util.Locale> resolveLocale(javax.servlet.http.HttpServletRequest request)
RequestLocaleResolvernull but possibly empty list of
 Locale instances to consider for localization of the current
 request. The list returned is assumed to be ordered by preference where
 the first entry is the preferred Locale and the last entry is
 the least preferred Locale.
 
 Returning an empty list is equivalent to returning a singleton list whose
 single entry is the ResourceBundleProvider.getDefaultLocale().
resolveLocale in interface RequestLocaleResolverrequest - The HttpServletRequest providing hints
            and information for the Locale resolution.Locales to use for internationalization
         of request processingRequestLocaleResolver.resolveLocale(javax.servlet.http.HttpServletRequest)Copyright © 2018 The Apache Software Foundation. All rights reserved.