Exemple #1
0
  private void handleForceLocale(
      ResolverContext context, HttpServletResponse response, ExtendedMap formItems) {

    ForcedResolverValueLifetimeSettings forceLocaleLifeTimeSetting =
        getForcedDeviceClassSetting(formItems, ForcedResolverValueLifetimeSettings.permanent);

    String localeString = formItems.getString(FORM_ITEM_LOCALE);

    localeResolverService.setForcedLocale(
        context, response, forceLocaleLifeTimeSetting, localeString);
  }
Exemple #2
0
 private void handleResetLocale(ResolverContext context, HttpServletResponse response) {
   localeResolverService.resetLocale(context, response);
 }