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