@FunctionalInterface
public interface MessageEditor
MessagingExceptions thrown by MimeMessage.
This interface will typically be implemented by lambda expressions passed to
EmailSender.send(MessageEditor). See the JavaDoc of that method for an example.
| Modifier and Type | Method and Description |
|---|---|
javax.mail.internet.MimeMessage |
edit(javax.mail.internet.MimeMessage message)
Implementations of this method returns a message, which might or might not be a modification of the source message.
|
javax.mail.internet.MimeMessage edit(@Nonnull
javax.mail.internet.MimeMessage message)
throws java.lang.Exception
EmailSender.send(MessageEditor) for an example of a lambda expression that implements this interface.message - the source messagejava.lang.Exception - if modification fails