All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.digitalcollections.commons.springmvc.controller.AbstractController Maven / Gradle / Ivy

package de.digitalcollections.commons.springmvc.controller;

import org.springframework.util.StringUtils;
import org.springframework.validation.BindingResult;

public abstract class AbstractController {

  protected void verifyBinding(BindingResult br) {
    String[] suppressedFields = br.getSuppressedFields();
    if (suppressedFields.length > 0) {
      throw new RuntimeException("Attempting to bind suppressed fields: "
              + StringUtils.arrayToCommaDelimitedString(suppressedFields));
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy