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 ISentMailData
ofMimeMessage
(javax.mail.internet.MimeMessage msg) Creates a aSentMailData
POJO 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:ISentMailData
Gets the final resolved BCC address of the mail which was sent.- Specified by:
getBcc
in interfaceISentMailData
- Returns:
- The mail's subject.
-
getCc
Description copied from interface:ISentMailData
Gets the final resolved CC address of the mail which was sent.- Specified by:
getCc
in interfaceISentMailData
- Returns:
- The mail's subject.
-
getSubject
Description copied from interface:ISentMailData
Gets the final resolved subject of the mail which was sent.- Specified by:
getSubject
in interfaceISentMailData
- Returns:
- The mail's subject.
-
getTo
Description copied from interface:ISentMailData
Gets the final resolved TO address of the mail which was sent.- Specified by:
getTo
in interfaceISentMailData
- Returns:
- The mail's subject.
-
ofMimeMessage
Creates a aSentMailData
POJO 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.
-