Пример #1
0
 static {
   GOOGLE_COUNTRY_TLD = new HashMap<String, String>();
   GOOGLE_COUNTRY_TLD.put("AR", "com.ar"); // ARGENTINA
   GOOGLE_COUNTRY_TLD.put("AU", "com.au"); // AUSTRALIA
   GOOGLE_COUNTRY_TLD.put("BR", "com.br"); // BRAZIL
   GOOGLE_COUNTRY_TLD.put("BG", "bg"); // BULGARIA
   GOOGLE_COUNTRY_TLD.put(Locale.CANADA.getCountry(), "ca");
   GOOGLE_COUNTRY_TLD.put(Locale.CHINA.getCountry(), "cn");
   GOOGLE_COUNTRY_TLD.put("CZ", "cz"); // CZECH REPUBLIC
   GOOGLE_COUNTRY_TLD.put("DK", "dk"); // DENMARK
   GOOGLE_COUNTRY_TLD.put("FI", "fi"); // FINLAND
   GOOGLE_COUNTRY_TLD.put(Locale.FRANCE.getCountry(), "fr");
   GOOGLE_COUNTRY_TLD.put(Locale.GERMANY.getCountry(), "de");
   GOOGLE_COUNTRY_TLD.put("GR", "gr"); // GREECE
   GOOGLE_COUNTRY_TLD.put("HU", "hu"); // HUNGARY
   GOOGLE_COUNTRY_TLD.put("ID", "co.id"); // INDONESIA
   GOOGLE_COUNTRY_TLD.put("IL", "co.il"); // ISRAEL
   GOOGLE_COUNTRY_TLD.put(Locale.ITALY.getCountry(), "it");
   GOOGLE_COUNTRY_TLD.put(Locale.JAPAN.getCountry(), "co.jp");
   GOOGLE_COUNTRY_TLD.put(Locale.KOREA.getCountry(), "co.kr");
   GOOGLE_COUNTRY_TLD.put("NL", "nl"); // NETHERLANDS
   GOOGLE_COUNTRY_TLD.put("PL", "pl"); // POLAND
   GOOGLE_COUNTRY_TLD.put("PT", "pt"); // PORTUGAL
   GOOGLE_COUNTRY_TLD.put("RU", "ru"); // RUSSIA
   GOOGLE_COUNTRY_TLD.put("SK", "sk"); // SLOVAK REPUBLIC
   GOOGLE_COUNTRY_TLD.put("SI", "si"); // SLOVENIA
   GOOGLE_COUNTRY_TLD.put("ES", "es"); // SPAIN
   GOOGLE_COUNTRY_TLD.put("SE", "se"); // SWEDEN
   GOOGLE_COUNTRY_TLD.put(Locale.TAIWAN.getCountry(), "tw");
   GOOGLE_COUNTRY_TLD.put("TR", "com.tr"); // TURKEY
   GOOGLE_COUNTRY_TLD.put(Locale.UK.getCountry(), "co.uk");
   GOOGLE_COUNTRY_TLD.put(Locale.US.getCountry(), "com");
 }
Пример #2
0
 static {
   GOOGLE_PRODUCT_SEARCH_COUNTRY_TLD = new HashMap<String, String>();
   GOOGLE_PRODUCT_SEARCH_COUNTRY_TLD.put("AU", "com.au"); // AUSTRALIA
   GOOGLE_PRODUCT_SEARCH_COUNTRY_TLD.put(Locale.CHINA.getCountry(), "cn");
   GOOGLE_PRODUCT_SEARCH_COUNTRY_TLD.put(Locale.FRANCE.getCountry(), "fr");
   GOOGLE_PRODUCT_SEARCH_COUNTRY_TLD.put(Locale.GERMANY.getCountry(), "de");
   GOOGLE_PRODUCT_SEARCH_COUNTRY_TLD.put(Locale.ITALY.getCountry(), "it");
   GOOGLE_PRODUCT_SEARCH_COUNTRY_TLD.put(Locale.JAPAN.getCountry(), "co.jp");
   GOOGLE_PRODUCT_SEARCH_COUNTRY_TLD.put("NL", "nl"); // NETHERLANDS
   GOOGLE_PRODUCT_SEARCH_COUNTRY_TLD.put("ES", "es"); // SPAIN
   GOOGLE_PRODUCT_SEARCH_COUNTRY_TLD.put(Locale.UK.getCountry(), "co.uk");
   GOOGLE_PRODUCT_SEARCH_COUNTRY_TLD.put(Locale.US.getCountry(), "com");
 }