Class ClientI18NReader

java.lang.Object
org.eclnt.jsfserver.util.ClientI18NReader

public class ClientI18NReader extends Object
Class that reads all I18N information for the RISC client and transforms this information into a JSON string that is read by the RISC client when starting up.

In addition the class provides some methods for accessing system information (e.g. languages and countries that are available for the client).
  • Field Details

  • Constructor Details

    • ClientI18NReader

      public ClientI18NReader()
  • Method Details

    • init

      public static void init(javax.servlet.ServletContext servletContext)
    • buildI18NJson

      public static String buildI18NJson(javax.servlet.ServletContext servletContext)
      Build the JSON configuration string, that is processed by the RISC client in order to get its client locale configuration.
    • getCountries

      public static Set<String> getCountries()
      Returns list of all countries that are defined for the RISC client.
    • getLanguages

      public static Set<String> getLanguages()
      Returns list of all languages that are defined for the RISC client.
    • reset

      public static void reset()
      Resets buffered information so that it is rebuilt the next time that it is requested.
    • getCountryInfoMap

      public static Map<String,String> getCountryInfoMap(String countryId)