|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.util.LocaleUtil
@StableMinor(version="6.1", sinceVersion="4.0") public abstract class LocaleUtil
Utility class for Locale related operations
Field Summary | |
---|---|
static java.lang.String |
LOCALE_ATTRIBUTE_NAME
|
Constructor Summary | |
---|---|
LocaleUtil()
|
Method Summary | |
---|---|
static java.util.Locale |
fromRequest(javax.servlet.http.HttpServletRequest request)
|
static java.util.Locale |
FromString(java.lang.String locale)
|
static java.util.Locale |
fromXMLLang(java.lang.String xmlLang)
Returns the locale corresponding to a String following XML lang syntax (e.g.: en-US). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LOCALE_ATTRIBUTE_NAME
Constructor Detail |
---|
public LocaleUtil()
Method Detail |
---|
public static java.util.Locale FromString(java.lang.String locale) throws PortalException
PortalException
public static java.util.Locale fromXMLLang(java.lang.String xmlLang)
xmlLang
- the XML lang value, according to the
RFC3066.
java.lang.IllegalArgumentException
- if xmlLang is null
or is
an invalid locale identifier.public static java.util.Locale fromRequest(javax.servlet.http.HttpServletRequest request) throws PortalException
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |