public class DefaultLocaleFacade extends Object implements LocaleFacade
Locale information.| Constructor and Description |
|---|
DefaultLocaleFacade() |
| Modifier and Type | Method and Description |
|---|---|
Locale |
getCurrentLocale()
Returns the requested locale of the current HTTP request, or default locale of the server.
|
List<Locale> |
getCurrentLocales()
Returns a list of locales indicating, in decreasing order starting with the preferred locale, the locales that
are acceptable to the client based on the Accept-Language header.
|
@Nonnull public Locale getCurrentLocale()
getCurrentLocale in interface LocaleFacade@Nonnull public List<Locale> getCurrentLocales()
getCurrentLocales in interface LocaleFacadeCopyright © 2020 SAP SE. All rights reserved.