Package de.xima.fc.mail.impl
Class SentMailData
java.lang.Object
de.xima.fc.mail.impl.SentMailData
- All Implemented Interfaces:
ISentMailData
Default POJO implementation of ISentMailData.
- Since:
- 8.0.4
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBcc()Gets the final resolved BCC address of the mail which was sent.getCc()Gets the final resolved CC address of the mail which was sent.Gets the final resolved subject of the mail which was sent.getTo()Gets the final resolved TO address of the mail which was sent.static ISentMailDataofMimeMessage(javax.mail.internet.MimeMessage msg) Creates a aSentMailDataPOJO with the data from the given mail mime message.
-
Constructor Details
-
SentMailData
Creates a new POJO with the given data.- Parameters:
subject- The mail's subject.to- The list of TO recipients.cc- The list of CC recipients.bcc- The list of BCC recipients.
-
-
Method Details
-
getBcc
Description copied from interface:ISentMailDataGets the final resolved BCC address of the mail which was sent.- Specified by:
getBccin interfaceISentMailData- Returns:
- The mail's subject.
-
getCc
Description copied from interface:ISentMailDataGets the final resolved CC address of the mail which was sent.- Specified by:
getCcin interfaceISentMailData- Returns:
- The mail's subject.
-
getSubject
Description copied from interface:ISentMailDataGets the final resolved subject of the mail which was sent.- Specified by:
getSubjectin interfaceISentMailData- Returns:
- The mail's subject.
-
getTo
Description copied from interface:ISentMailDataGets the final resolved TO address of the mail which was sent.- Specified by:
getToin interfaceISentMailData- Returns:
- The mail's subject.
-
ofMimeMessage
Creates a aSentMailDataPOJO with the data from the given mail mime message.- Parameters:
msg- Mime message with the mail data.- Returns:
- A new POJO with the data from the mime message.
-