Class EmailConstraintValidator

  • All Implemented Interfaces:
    javax.validation.ConstraintValidator<ValidEmail,​String>

    public class EmailConstraintValidator
    extends Object
    implements javax.validation.ConstraintValidator<ValidEmail,​String>
    ConstraintValidator that validates emails. Uses apache commons EmailValidator

    Handles ValidEmail annotation which is better than default Email. Default one finds some values valid like: "mail@mail", "mail@mail.e", but this one not.