java.lang.Object
com.aquima.interactions.foundation.connectivity.impl.MailAddress
All Implemented Interfaces:
IMailAddress

public class MailAddress extends Object implements IMailAddress
This class implements an email address that can be used for an IMailMessage.
Since:
6.4
Author:
Jon van Leuven
  • Constructor Details

    • MailAddress

      public MailAddress(String address)
      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

      public MailAddress(String address, String personal)
      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 empty
      personal - The display string for this email address, may be null
  • Method Details

    • getAddress

      public String getAddress()
      Description copied from interface: IMailAddress
      This method returns the address in RFC822 format.
      Specified by:
      getAddress in interface IMailAddress
      Returns:
      The address in RFC822 format, may not be null
    • getPersonal

      public String getPersonal()
      Description copied from interface: IMailAddress
      This method returns the display name of the email address.
      Specified by:
      getPersonal in interface IMailAddress
      Returns:
      The person name, may be null.
    • getAddressDomain

      public String getAddressDomain()
      Description copied from interface: IMailAddress
      This method returns the domain part of the address.
      Specified by:
      getAddressDomain in interface IMailAddress
      Returns:
      the domain part of the address.
    • toString

      public String toString()
      Overrides:
      toString in class Object