Esempio n. 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);
  }
Esempio n. 2
0
 private void handleResetLocale(ResolverContext context, HttpServletResponse response) {
   localeResolverService.resetLocale(context, response);
 }