예제 #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);
  }
예제 #2
0
 private void handleResetDeviceClass(ResolverContext context, HttpServletResponse response) {
   deviceClassResolverService.resetDeviceClass(context, response);
 }