com.emailage.javawrapper.utilities.Validation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of classic-api-client Show documentation
Show all versions of classic-api-client Show documentation
Emailage Classic API Java Client
package com.emailage.javawrapper.utilities;
import org.apache.commons.validator.routines.EmailValidator;
import org.apache.commons.validator.routines.InetAddressValidator;
public class Validation {
public static boolean validateEmail(String email) {
return EmailValidator.getInstance().isValid(email);
}
public static boolean validateIpAddress(String ipAddress) {
return InetAddressValidator.getInstance().isValid(ipAddress);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy