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,
javax.servlet.http.HttpServletRequest request)
Returns the
Locale in different context |
static ULocale |
getULocale(IlvServletLocaleUtil.LocaleContext mode,
javax.servlet.http.HttpServletRequest request)
Returns the
ULocale in different context |
public static Locale getLocale(IlvServletLocaleUtil.LocaleContext mode, javax.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.SERVER
request
- the current Http request.Only needed in
IlvServletLocaleUtil.LocaleContext.SERVLET
context, input null in other
contexts.Locale
in different modepublic static ULocale getULocale(IlvServletLocaleUtil.LocaleContext mode, javax.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.SERVER
request
- the current Http request.Only needed in
IlvServletLocaleUtil.LocaleContext.SERVLET
context, input null in other
contexts.Locale
in different mode© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.