public interface Message
| Modifier and Type | Method and Description |
|---|---|
List<EmailAttachment> |
getAttachments()
Returns all the attached files to a message.
|
List<ContentMessage> |
getContents()
Returns all the contents of a message.
|
Integer |
getId()
Returns the unique identifier of a message.
|
LocalDateTime |
getReceivedDate()
Returns the date of receiving this message.
|
Set<EmailParticipant> |
getRecipients()
Returns all the recipients of a message.
|
EmailParticipant |
getSender()
Returns the sender of a message.
|
LocalDateTime |
getSentDate()
Returns the date of sending this message.
|
Long |
getSize()
Returns size of a message.
|
String |
getSubject()
Returns the subject of a message.
|
TransferEncoder |
getTransferEncoder()
Returns the value of Content-Transfer-Encoding header.
|
boolean |
isSeen()
Returns true if this message has already seen.
|
Integer getId()
String getSubject()
List<ContentMessage> getContents()
A message can contain several contents at once. They may have different content types.
But not any content type, only plain/text or plain/html.
Allowed content types were enumerated in ContentMessageType.
Set<EmailParticipant> getRecipients()
EmailParticipant getSender()
TransferEncoder getTransferEncoder()
List<EmailAttachment> getAttachments()
Long getSize()
LocalDateTime getSentDate()
LocalDateTime getReceivedDate()
boolean isSeen()
Copyright © 2023. All rights reserved.