|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.i18n.DefaultLocaleResolver
public class DefaultLocaleResolver
The 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 Summary | |
|---|---|
DefaultLocaleResolver()
|
|
| Method Summary | |
|---|---|
java.util.List<java.util.Locale> |
resolveLocale(org.apache.sling.api.SlingHttpServletRequest request)
Return the Locales provided by the ServletRequest.getLocales() method collected in a
List. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultLocaleResolver()
| Method Detail |
|---|
public java.util.List<java.util.Locale> resolveLocale(org.apache.sling.api.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 processing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||