Interface MessageComposer

All Known Implementing Classes:
DefaultMessageComposer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@DefaultImplementation(DefaultMessageComposer.class) @FunctionalInterface public interface MessageComposer
Creates a Message for the given Email.
Since:
1.0.0
Author:
Sergio del Amo
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull jakarta.mail.Message
    compose(@NonNull Email email, @NonNull jakarta.mail.Session session)
     
  • Method Details

    • compose

      @NonNull @NonNull jakarta.mail.Message compose(@NonNull @NonNull Email email, @NonNull @NonNull jakarta.mail.Session session) throws jakarta.mail.MessagingException
      Parameters:
      email - Email
      session - Session Object
      Returns:
      A Message
      Throws:
      jakarta.mail.MessagingException - when creating Message