Interface MessageDataSource

All Known Subinterfaces:
MessageTemplateDataSource
All Known Implementing Classes:
ClasspathResourceMessageTemplateDataSource, SimpleMessageDataSource

public interface MessageDataSource
API for mail message content.
Since:
1.5
  • Method Summary

    Modifier and Type
    Method
    Description
    Iterable<org.springframework.core.io.Resource>
    Get a collection of message attachments.
    Get the message body.
    Get the message subject.
  • Method Details

    • getSubject

      String getSubject()
      Get the message subject.
      Returns:
      the message subject
    • getBody

      String getBody()
      Get the message body.
      Returns:
      the message body, or null if none
    • getAttachments

      Iterable<org.springframework.core.io.Resource> getAttachments()
      Get a collection of message attachments.
      Returns:
      the attachments, or null if none