Package de.uplanet.util
Klasse MailAddressUtil
java.lang.Object
de.uplanet.util.MailAddressUtil
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voidcheckValidInternetMailAddress(String p_strAddress) Check if the given address is a valid Internet mail address.static booleanisValidInternetMailAddress(String p_strAddress) Test if the given address is a valid Internet mail address.parseSeparatedAddresses(String p_strAddresses) Parse a list of semicolon-separated, or line-feed-separated, or comma-separated mail addresses.
-
Methodendetails
-
checkValidInternetMailAddress
public static void checkValidInternetMailAddress(String p_strAddress) throws javax.mail.internet.AddressException Check if the given address is a valid Internet mail address.This method is equivalent to
newfor all given addresses.InternetAddress(p_strAddress, false)- Parameter:
p_strAddress- The address to be checked.- Löst aus:
javax.mail.internet.AddressException- If the given address is not a valid Internet mail address.IllegalArgumentException- If thep_strAddressparameter isnull.- Siehe auch:
-
isValidInternetMailAddress
Test if the given address is a valid Internet mail address.- Parameter:
p_strAddress- The address to be checked.- Gibt zurück:
trueifcheckValidInternetMailAddress(String)succeeds, orfalseotherwise.
-
parseSeparatedAddresses
Parse a list of semicolon-separated, or line-feed-separated, or comma-separated mail addresses.See also RFC 5322.
- Parameter:
p_strAddresses- A separated list of mail addresses.- Gibt zurück:
- A list that contains the (non-empty) parsed addresses.
- Löst aus:
IllegalArgumentException- If the input isnull.
-