Class IncomeMailImpl
java.lang.Object
ch.tocco.nice2.messaging.mail.spi.AbstractBaseMail
ch.tocco.nice2.messaging.mail.impl.IncomeMailImpl
- All Implemented Interfaces:
BaseMail
,IncomeMail
Wraps a
MimeMessage
from an inbox.-
Field Summary
Fields inherited from class ch.tocco.nice2.messaging.mail.spi.AbstractBaseMail
attachments, bcc, cc, from, html, log, replyTo, subject, text, to
Fields inherited from interface ch.tocco.nice2.messaging.mail.api.BaseMail
NO_SUBJECT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIterable
<jakarta.mail.internet.InternetAddress> byte[]
getSingleHeader
(String name, String fallback) void
setAllRecipients
(Iterable<jakarta.mail.internet.InternetAddress> allRecipients) void
setHeaderLines
(List<String> headerLines) void
setHeaders
(jakarta.mail.internet.MimeMessage message) void
setMessageId
(String messageId) void
setOriginalMail
(Supplier<byte[]> originalMail) void
setReceivedDate
(Date receivedDate) void
setSentDate
(Date sentDate) toString()
Methods inherited from class ch.tocco.nice2.messaging.mail.spi.AbstractBaseMail
addAttachment, addBcc, addBcc, addBcc, addCc, addCc, addCc, addReplyTo, addReplyTo, addReplyTo, addTo, addTo, addTo, clearAttachments, clearBcc, clearCc, clearReplyTo, clearTo, containsAttachment, createAttachment, createAttachment, createAttachment, getAttachments, getBcc, getCc, getFrom, getHtml, getReplyTo, getSubject, getText, getTo, mergeWithExistingHtml, removeAttachment, setBcc, setCc, setFrom, setHtml, setReplyTo, setSubject, setText, setTo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.messaging.mail.api.BaseMail
addAttachment, addBcc, addBcc, addBcc, addCc, addCc, addCc, addReplyTo, addReplyTo, addReplyTo, addTo, addTo, addTo, clearAttachments, clearBcc, clearCc, clearReplyTo, clearTo, containsAttachment, createAttachment, createAttachment, createAttachment, getAttachments, getBcc, getCc, getFrom, getHtml, getReplyTo, getSubject, getText, getTo, removeAttachment, setFrom, setHtml, setSubject, setText
-
Constructor Details
-
IncomeMailImpl
public IncomeMailImpl(org.slf4j.Logger log)
-
-
Method Details
-
getAllRecipients
- Specified by:
getAllRecipients
in interfaceIncomeMail
-
getMessageId
- Specified by:
getMessageId
in interfaceIncomeMail
-
getOriginalMail
public byte[] getOriginalMail()- Specified by:
getOriginalMail
in interfaceIncomeMail
-
setOriginalMail
-
setMessageId
-
setSentDate
-
setReceivedDate
-
setHeaders
public void setHeaders(jakarta.mail.internet.MimeMessage message) throws jakarta.mail.MessagingException - Throws:
jakarta.mail.MessagingException
-
setHeaderLines
-
getAllHeaderLines
- Specified by:
getAllHeaderLines
in interfaceIncomeMail
-
setAllRecipients
-
getSentDate
- Specified by:
getSentDate
in interfaceIncomeMail
-
getReceivedDate
- Specified by:
getReceivedDate
in interfaceIncomeMail
-
getHeader
- Specified by:
getHeader
in interfaceIncomeMail
-
getHeaders
- Specified by:
getHeaders
in interfaceIncomeMail
-
getSingleHeader
- Specified by:
getSingleHeader
in interfaceIncomeMail
-
toString
- Overrides:
toString
in classAbstractBaseMail
-