uk.ac.soton.itinnovation.grid.service.utils
Class EmailValidator

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.utils.EmailValidator

public class EmailValidator
extends Object


Constructor Summary
EmailValidator()
           
 
Method Summary
static boolean hasInvalidChars(String s)
          Check and see if there is any invalid characters in a string
static boolean isValidEmailAddress(String address)
          Validates an email address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailValidator

public EmailValidator()
Method Detail

hasInvalidChars

public static boolean hasInvalidChars(String s)
Check and see if there is any invalid characters in a string

Parameters:
s - the String to be checked
Returns:
true if there is invalid characters defined in the INVALID_CHARS; otherwise false;

isValidEmailAddress

public static boolean isValidEmailAddress(String address)
Validates an email address. An email address has the format user@uri

Parameters:
address - the email address to check
Returns:
true if the email address is valid; false otherwise


Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.