Class MailAddress
java.lang.Object
com.aquima.interactions.foundation.connectivity.impl.MailAddress
- All Implemented Interfaces:
IMailAddress
This class implements an email address that can be used for an IMailMessage.
- Since:
- 6.4
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorDescriptionMailAddress
(String address) This constuctor constructs a mail address for an address string.MailAddress
(String address, String personal) This constuctor constructs a mail address for an address string and display string. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the address in RFC822 format.This method returns the domain part of the address.This method returns the display name of the email address.toString()
-
Constructor Details
-
MailAddress
This constuctor constructs a mail address for an address string.- Parameters:
address
- The email addres, should be in RFC822 format, but no format checking is done. May not be null or empty
-
MailAddress
This constuctor constructs a mail address for an address string and display string.- Parameters:
address
- The email addres, should be in RFC822 format, but no format checking is done. May not be null or emptypersonal
- The display string for this email address, may be null
-
-
Method Details
-
getAddress
Description copied from interface:IMailAddress
This method returns the address in RFC822 format.- Specified by:
getAddress
in interfaceIMailAddress
- Returns:
- The address in RFC822 format, may not be null
-
getPersonal
Description copied from interface:IMailAddress
This method returns the display name of the email address.- Specified by:
getPersonal
in interfaceIMailAddress
- Returns:
- The person name, may be null.
-
getAddressDomain
Description copied from interface:IMailAddress
This method returns the domain part of the address.- Specified by:
getAddressDomain
in interfaceIMailAddress
- Returns:
- the domain part of the address.
-
toString
-