Interface MailExtension.Message

All Superinterfaces:
AbstractBlob, org.faceless.publisher.ext.MailExtension.Part
Enclosing class:
MailExtension

public static interface MailExtension.Message extends org.faceless.publisher.ext.MailExtension.Part
  • Method Details

    • getAllParts

      Map<URL2,? extends org.faceless.publisher.ext.MailExtension.Part> getAllParts()
    • getContainerSize

      long getContainerSize()
    • getContainerInputStream

      InputStream getContainerInputStream()
    • getMessageId

      String getMessageId()
    • getType

      String getType()
      Return the type of this part: one of "message", "body-html", "body-plain", "inline", "attachment" or "container"
    • getAllHeaders

      Iterable<Map.Entry<String,String>> getAllHeaders()
      Return the list of headers for this Part
    • getHeaders

      List<String> getHeaders(String header)
      Return all the values for the specified header, or null if it's not set on this Part
    • getHeader

      String getHeader(String header)
      Return the first value for the specified header, or null if its not set on this PArt
    • hasFilename

      boolean hasFilename()
      If this part has a filename specified as part of the Content-Disposition header, return true
    • getParent

      org.faceless.publisher.ext.MailExtension.Part getParent()
      Return the MailExtension.Part that is the parent of this MailExtension.Part, or null if it's the mssage
    • getChildren

      List<? extends org.faceless.publisher.ext.MailExtension.Part> getChildren()
      For multipart parts, return a List of MailExtension.Part that are the children of this part, otherwise return null
    • getMailSource

      Object getMailSource()
      Return the Part object that underlies this Part, usually a javax.mail.internet.Part or jakarta.mail.internet.Part
    • toJson

      Json toJson(MailExtension.Configuration conf)
      Output a Json representation of the message which can be passed to an appropriate template object too generate XML/HTML for parsing
      Parameters:
      conf - the configuration, or null
      Returns:
      a Json object