public interface RequestLocaleResolver
RequestLocaleResolver
service interface may be implemented by a
service registered under this name to allow the resolution of the request
Locale
to apply.
This interface is intended to be implemented by providers knowing how to
resolve one or more Locale
s applicable to handle the request.
Only a single RequestLocaleResolver
service is currently used.
Modifier and Type | Method and Description |
---|---|
java.util.List<java.util.Locale> |
resolveLocale(HttpServletRequest request)
Return a non-
null but possibly empty list of
Locale instances to consider for localization of the current
request. |
java.util.List<java.util.Locale> resolveLocale(HttpServletRequest request)
null
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()
.
request
- The HttpServletRequest
providing hints
and information for the Locale
resolution.Locale
s to use for internationalization
of request processing"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"