Throwable
and
an arbitrary number of message formatting arguments.Throwable
and
an arbitrary number of message formatting arguments.I18nHandler
subclasses to find
the best locale suitable for given user for given I18nItem
instance, with user locale preferences already having been identified.I18nItemInContext
subclasses to
find the best locale suitable for given user for given
I18nItemInContext
instance.I18nItem.getBestLocaleTag()
, but returns just the language
field for the locale found.#getBestLocaleTag(TContext)
,
but returns just the language field for the locale found.I18nItem
instance, and the appropriate message, all
represented as a LocalizedMessage
instance.I18nItemInContext
instance, and the appropriate message,
all represented as a LocalizedMessage
instance.language tags
, best preferred coming
first; to be overridden to implement an application-specific approach to
user locale preferences.ServletRequest
instance via Accept-Language
headers.locale language tags
as a copy of locally
stored per-user setting.language tags
, best preferred coming
first.I18nHandlerInContext
subclass is ready-to-use to implement
the approach with user locale preferences being retrieved from
ServletRequest
Accept-Language
headers.I18nHandler
subclass is almost ready-to-use to implement the
approach with user locale preferences being stored locally, allowing single
user per application instance.TContext
instance; to be subclassed by an application.I18nHandler
subclasses.MessageFormat
style with one argument, to be
used together with I18nHandler
subclasses.MessageFormat
style with two arguments, to be
used together with I18nHandler
subclasses.MessageFormat
style with three arguments, to
be used together with I18nHandler
subclasses.MessageFormat
style with arbitrary number of
arguments, to be used together with I18nHandler
subclasses.TContext
instance; not intended to be used
or subclassed by applications directly.I18nHandlerInContext
subclasses.MessageFormat
style with one argument, to be
used together with I18nHandlerInContext
subclasses.MessageFormat
style with two arguments, to be
used together with I18nHandlerInContext
subclasses.MessageFormat
style with three arguments, to
be used together with I18nHandlerInContext
subclasses.MessageFormat
style with arbitrary number of
arguments, to be used together with I18nHandlerInContext
subclasses.Throwable
and
an arbitrary number of message formatting arguments.LocalizedMessage
instance.I18nItem
subclassing.MessageFormat
-style arguments upon being
used.MessageFormat
instance to be
used by subclasses that take message formatting arguments.MessageFormat
instance to be
used by subclasses that take message formatting arguments.locale language tags
, typically on
per-user basis.toString()
override to return a
message in user specific locale in case of no formatting arguments and no
I18nItemInContext0
-style context.Throwable
and
an arbitrary number of message formatting arguments.Throwable
and
an arbitrary number of message formatting arguments.