Package org.faceless.publisher.ext
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.
-
Method Summary
-
Method Details
-
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 suppliedMailExtension.ParsedMimeMessage
to theReport
. By default this method creates metadata by calling the#getMetadata
method, optionally wrapps the HTML by calling#wrapXHTML
, adds the parts returned byMailExtension.ParsedMimeMessage.getParts()
to theResourceLoader
used by theReport
, then loads the main part for conversion- Parameters:
message
- theMailExtension.ParsedMimeMessage
to read as inputreport
- theReport
to write to as output.- Throws:
IOException
MessagingException
-