public class IlvServletLocaleUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IlvServletLocaleUtil.LocaleContext
Locale Context to detetermine which locale should be applied
|
| Modifier and Type | Method and Description |
|---|---|
static Locale |
getLocale(IlvServletLocaleUtil.LocaleContext mode,
jakarta.servlet.http.HttpServletRequest request)
Returns the
Locale in different context |
static com.ibm.icu.util.ULocale |
getULocale(IlvServletLocaleUtil.LocaleContext mode,
jakarta.servlet.http.HttpServletRequest request)
Returns the
ULocale in different context |
public static Locale getLocale(IlvServletLocaleUtil.LocaleContext mode, jakarta.servlet.http.HttpServletRequest request)
Locale in different contextmode - the current context,the possible values
are:IlvServletLocaleUtil.LocaleContext.JSF and IlvServletLocaleUtil.LocaleContext.SERVLET
and IlvServletLocaleUtil.LocaleContext.SERVERrequest - the current Http request.Only needed in
IlvServletLocaleUtil.LocaleContext.SERVLET context, input null in other
contexts.Locale in different modepublic static com.ibm.icu.util.ULocale getULocale(IlvServletLocaleUtil.LocaleContext mode, jakarta.servlet.http.HttpServletRequest request)
ULocale in different contextmode - the current context,the possible values
are:IlvServletLocaleUtil.LocaleContext.JSF and IlvServletLocaleUtil.LocaleContext.SERVLET
and IlvServletLocaleUtil.LocaleContext.SERVERrequest - the current Http request.Only needed in
IlvServletLocaleUtil.LocaleContext.SERVLET context, input null in other
contexts.Locale in different mode© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.