Class LocaleHelper

    • Constructor Detail

      • LocaleHelper

        public LocaleHelper()
    • Method Detail

      • extractLocale

        public static Locale extractLocale​(String lang)
      • toLanguageString

        public static String toLanguageString​(Locale value)
        HTTP 1.1 has different String format for language than what java.util.Locale does '-' instead of '_' as a separator
        Parameters:
        value - locale
        Returns:
        converted language format string