Interface MailExtension.Configuration

Enclosing class:
MailExtension

public static interface MailExtension.Configuration
A Configuration controls how an arbitrary mail message is converted to input that can be used by BFO Publisher. A number of standard configurations are available, or a custom one can be created that optionally extends an existing configuration.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(org.faceless.publisher.ext.MailExtension.ParsedMimeMessage message, Report report)
    Apply the supplied MailExtension.ParsedMimeMessage to the Report.
    Return the list of names that this Configuration is known by
  • Method Details

    • getNames

      List<String> getNames()
      Return the list of names that this Configuration is known by
    • apply

      void apply(org.faceless.publisher.ext.MailExtension.ParsedMimeMessage message, Report report) throws IOException, MessagingException
      Apply the supplied MailExtension.ParsedMimeMessage to the Report. By default this method creates metadata by calling the #getMetadata method, optionally wrapps the HTML by calling #wrapXHTML, adds the parts returned by MailExtension.ParsedMimeMessage.getParts() to the ResourceLoader used by the Report, then loads the main part for conversion
      Parameters:
      message - the MailExtension.ParsedMimeMessage to read as input
      report - the Report to write to as output.
      Throws:
      IOException
      MessagingException