Class Addresses

java.lang.Object
java.util.AbstractMap<javax.mail.Message.RecipientType,List<javax.mail.internet.InternetAddress>>
java.util.HashMap<javax.mail.Message.RecipientType,List<javax.mail.internet.InternetAddress>>
org.bgerp.plugin.msg.email.message.Addresses
All Implemented Interfaces:
Serializable, Cloneable, Map<javax.mail.Message.RecipientType,List<javax.mail.internet.InternetAddress>>

public class Addresses extends HashMap<javax.mail.Message.RecipientType,List<javax.mail.internet.InternetAddress>>
EMail addresses recipients parser and serializer. Supported recipient types: TO, CC, BCC.
See Also:
  • Constructor Details

    • Addresses

      public Addresses()
    • Addresses

      public Addresses(String addresses)
  • Method Details

    • addTo

      public Addresses addTo(String value)
      Appends an email as recipient TO address.
      Parameters:
      value - the email.
      Returns:
    • exclude

      public Addresses exclude(String value)
      Deletes an email from all the types of existing addresses.
      Parameters:
      value - the email.
      Returns:
    • serializeTo

      public String serializeTo()
    • serializeCc

      public String serializeCc()
    • serializeBcc

      public String serializeBcc()