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, toFields inherited from interface ch.tocco.nice2.messaging.mail.api.BaseMail
NO_SUBJECT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIterable<jakarta.mail.internet.InternetAddress> byte[]getSingleHeader(String name, String fallback) voidsetAllRecipients(Iterable<jakarta.mail.internet.InternetAddress> allRecipients) voidsetHeaderLines(List<String> headerLines) voidsetHeaders(jakarta.mail.internet.MimeMessage message) voidsetMessageId(String messageId) voidsetOriginalMail(Supplier<byte[]> originalMail) voidsetReceivedDate(Date receivedDate) voidsetSentDate(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, hasNoRecipients, isBodyEmpty, mergeWithExistingHtml, removeAttachment, setBcc, setCc, setFrom, setHtml, setReplyTo, setSubject, setText, setToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, hasNoRecipients, isBodyEmpty, removeAttachment, setFrom, setHtml, setSubject, setText
-
Constructor Details
-
IncomeMailImpl
public IncomeMailImpl(org.slf4j.Logger log)
-
-
Method Details
-
getAllRecipients
- Specified by:
getAllRecipientsin interfaceIncomeMail
-
getMessageId
- Specified by:
getMessageIdin interfaceIncomeMail
-
getOriginalMail
public byte[] getOriginalMail()- Specified by:
getOriginalMailin 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:
getAllHeaderLinesin interfaceIncomeMail
-
setAllRecipients
-
getSentDate
- Specified by:
getSentDatein interfaceIncomeMail
-
getReceivedDate
- Specified by:
getReceivedDatein interfaceIncomeMail
-
getHeader
- Specified by:
getHeaderin interfaceIncomeMail
-
getHeaders
- Specified by:
getHeadersin interfaceIncomeMail
-
getSingleHeader
- Specified by:
getSingleHeaderin interfaceIncomeMail
-
toString
- Overrides:
toStringin classAbstractBaseMail
-