|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.procunit.IELocaleFinder
Field Summary | |
private static Map |
localeTable
|
Constructor Summary | |
IELocaleFinder()
|
Method Summary | |
static Locale |
extractLocale(Request request)
Extracts the locale from the Request. |
static Locale |
getLocale()
Gives the Locale from the current request. |
static Locale |
getLocale(Request request)
Gives the Locale from the current request. |
static void |
setLocale(Locale locale)
Sets the locale and the current thread in the table. |
static void |
setLocale(Request request)
Sets the locale from the SERVER context group of a Request object. |
static void |
setLocale(String languagePreferences)
Sets the locale from a String encoded in the format of an HTTP "Accept-Language" header. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static Map localeTable
Constructor Detail |
public IELocaleFinder()
Method Detail |
public static Locale getLocale()
public static Locale getLocale(Request request)
request
- the request object.
public static void setLocale(Locale locale)
locale
- The locale to be set.public static void setLocale(String languagePreferences)
languagePreferences
- the language preferences, encoded in
HTTP "Accept-Language" formatpublic static void setLocale(Request request)
request
- The request object from which to obtain the SERVER
context group.public static Locale extractLocale(Request request)
request
- the Request
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |