Class MailMessageUtils

java.lang.Object
de.muehlencord.shared.network.mail.MailMessageUtils

public abstract class MailMessageUtils extends Object
Util class to convert between javax.mail.Message and MailMessage objects
Author:
Joern Muehlencord (joern@muehlencord.de)
  • Constructor Details

    • MailMessageUtils

      public MailMessageUtils()
  • Method Details

    • getInstance

      public static MailMessage getInstance(javax.mail.Message message) throws MailMessageException
      creates a new instance of MailMessage based on the given javax.mail.Message object
      Parameters:
      message - the message object to create the message from
      Returns:
      the MailMessage object created from the given javax.mail.Message
      Throws:
      MailMessageException - if the message cannot be created