コード例 #1
0
 /**
  * Sets the country associated with the user.
  *
  * @param countryCode the desired country for the user.
  */
 private void changeCountry(CountryCode countryCode) {
   if (availableCountries().contains(countryCode)) {
     Http.Context.current().session().put(COUNTRY_SESSION_KEY, countryCode.getAlpha2());
   }
 }