com.ibm.xdms.utils
Class ThreadLocale
java.lang.Object
com.ibm.xdms.utils.ThreadLocale
public class ThreadLocale
- extends java.lang.Object
This class stores a Map of Threads to their corresponding Locale that should
be used that is typically set during an XCAP Request and reset when the
response is sent.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Method Summary |
static void |
clearLocale()
Clear the Locale that is associated with the current Thread |
static java.util.Locale |
getLocale()
Returns a Locale that is associated with the current Thread |
static void |
setLocale(java.util.Locale locale)
Put a Locale that is associated with the current Thread |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
ThreadLocale
public ThreadLocale()
getLocale
public static java.util.Locale getLocale()
- Returns a Locale that is associated with the current Thread
- Returns:
- Returns a Locale that is associated with the current Thread
clearLocale
public static void clearLocale()
- Clear the Locale that is associated with the current Thread
setLocale
public static void setLocale(java.util.Locale locale)
- Put a Locale that is associated with the current Thread
- Parameters:
locale
- Put a Locale that is associated with the current Thread