Class InputValidator

java.lang.Object
fr.metabocloud.core.implementation.utils.InputValidator

public class InputValidator extends Object
Utility class with methods to validate input sent in a request.
  • Constructor Details

    • InputValidator

      protected InputValidator()
      Protected constructor
  • Method Details

    • validateExactlyOneInputSent

      public static void validateExactlyOneInputSent(List<?> inputList) throws RequestBodyException
      Validate whether only one input type has been sent in the multipart form from the request body.
      Parameters:
      inputList - The multipart form as a list (only one value in this list must not be null).
      Throws:
      RequestBodyException - if more than one input type has been sent.