Class 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 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
    • Constructor Detail

      • SharedLocaleUtil

        public SharedLocaleUtil()
    • 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.