Example #1
0
  private void handleForceDeviceClass(
      ResolverContext context, HttpServletResponse response, ExtendedMap formItems) {

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

    String deviceClass = formItems.getString(FORM_ITEM_DEVICE_CLASS);

    deviceClassResolverService.setForcedDeviceClass(
        context, response, forcedDeviceClassSetting, deviceClass);
  }
Example #2
0
 private void handleResetDeviceClass(ResolverContext context, HttpServletResponse response) {
   deviceClassResolverService.resetDeviceClass(context, response);
 }