Class MessageService
java.lang.Object
org.apache.olingo.odata2.core.exception.MessageService
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageServicegetInstance(List<Locale> locales) static MessageServicegetInstance(Locale locale) getKeys()static MessageService.MessagegetMessage(Locale locale, String key, Object... replacements) static MessageService.MessagegetMessage(Locale language, MessageReference context) static LocalegetSupportedLocale(List<Locale> locales) Return first found supportedLocale(iterating over list starting with first element).static LocalegetSupportedLocale(List<Locale> locales, Locale defaultLocale) Return first found supportedLocale(iterating over list starting with first element).static booleanisLocaleSupported(Locale locale)
-
Method Details
-
getInstance
-
isLocaleSupported
-
getSupportedLocale
Return first found supportedLocale(iterating over list starting with first element). If noLocaleis supportedNULLis returned.- Parameters:
locales- Locales- Returns:
- first supported
LocaleorNULL.
-
getSupportedLocale
Return first found supportedLocale(iterating over list starting with first element). If noLocaleis supported givendefaultLocaleis returned.- Parameters:
locales- to be checked localesdefaultLocale- local which is returned if no supported local is in givenlocaleslist- Returns:
- first supported
Localeor givendefaultLocale.
-
getInstance
-
getMessage
-
getMessage
-
getLocale
-
getKeys
-