Class FileValidator

java.lang.Object
org.apache.fulcrum.intake.validator.DefaultValidator<jakarta.servlet.http.Part>
org.apache.fulcrum.intake.validator.FileValidator
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled, InitableByConstraintMap, Validator<jakarta.servlet.http.Part>

public class FileValidator extends DefaultValidator<jakarta.servlet.http.Part>
A validator that will compare a Part testValue against the following constraints in addition to those listed in DefaultValidator. This validator can serve as the base class for more specific validators
Version:
$Id$
Author:
John McNally, Quinton McCombs, Colin Chalmers
  • Constructor Details

    • FileValidator

      public FileValidator()
      Default constructor
  • Method Details

    • assertValidity

      public void assertValidity(jakarta.servlet.http.Part testValue) throws ValidationException
      Determine whether a testValue meets the criteria specified in the constraints defined for this validator
      Parameters:
      testValue - a Part to be tested
      Throws:
      ValidationException - containing an error message if the testValue did not pass the validation tests.