Package com.levigo.jadice.server.shared
Class SharedLocaleUtil
- java.lang.Object
-
- com.levigo.jadice.server.shared.SharedLocaleUtil
-
public class SharedLocaleUtil extends Object
This class is a utility class for applying the clientLocale property from job requests to the job that shall be created.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLIENT_LOCALE_PROPERTY_KEY
The property key name für extracting the client locale settings out of the defined REST configuration properties.
-
Constructor Summary
Constructors Constructor Description SharedLocaleUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Locale
stringToLocale(String localeString)
This method parses a client locale string an creates a corresponding locale instance.
-
-
-
Field Detail
-
CLIENT_LOCALE_PROPERTY_KEY
public static final String CLIENT_LOCALE_PROPERTY_KEY
The property key name für extracting the client locale settings out of the defined REST configuration properties.- See Also:
- Constant Field Values
-
-
Method Detail
-
stringToLocale
public static Locale stringToLocale(String localeString)
This method parses a client locale string an creates a corresponding locale instance.- Parameters:
localeString
- the locale string that should be parsed and for which a corresponding locale instance shall be created.- Returns:
- the created locale instance.
-
-