Class MailImpl
java.lang.Object
ch.tocco.nice2.messaging.mail.spi.AbstractBaseMail
ch.tocco.nice2.messaging.mail.spi.AbstractOutgoingMail
ch.tocco.nice2.messaging.mail.impl.MailImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.messaging.mail.api.Mail
Mail.MailListener
-
Field Summary
Modifier and TypeFieldDescriptionprotected final MessageReader
protected final jakarta.mail.Session
Fields inherited from class ch.tocco.nice2.messaging.mail.spi.AbstractOutgoingMail
attributes, charset, contactCategory, encodeFileNames, expiryDate, listeners, mailArchive, mailSendThrottle, nice2Template, persistenceService, preventFromArchive, processor, recipientEntity, relatedEntity, sender, singleCopyMail, sourceEntities, sourceEntity, taskUuid, templateAttributes, templateEngine, templateEntity
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
ConstructorDescriptionMailImpl
(String subject, jakarta.mail.Session session, MessageProcessor processor, PersistenceService persistenceService, org.slf4j.Logger log, TemplateEngineFactory templateEngineFactory, MailArchive mailArchive, MailSendThrottle mailSendThrottle, Boolean encodeFileNames, MessageReader messageReader) -
Method Summary
Modifier and TypeMethodDescriptionclone()
protected MailArchive.MailArchiveEntry
doSend()
getBody()
Methods inherited from class ch.tocco.nice2.messaging.mail.spi.AbstractOutgoingMail
addBcc, addBcc, addBcc, addCc, addCc, addCc, addMailListener, addSourceEntity, addTo, addTo, addTo, checkRecipientAndContent, getAttributes, getCharset, getContactCategory, getExpiryDate, getRecipientEntity, getRelatedEntity, getSender, getSourceEntity, getTaskUuid, getTemplateAttribute, getTemplateAttributes, getTemplateEntity, isSingleCopyMail, preventFromArchive, processTemplate, processTemplate, processTemplateWithHtmlEscape, removeMailListener, send, setCharset, setContactCategory, setExpiryDate, setFrom, setRecipientEntity, setRelatedEntity, setSender, setSingleCopyMail, setSourceEntity, setTaskUuid, setTemplateAttribute, setTemplateEntity, setTemplateEntityData, setTemplateEntityListData
Methods inherited from class ch.tocco.nice2.messaging.mail.spi.AbstractBaseMail
addAttachment, addBcc, addBcc, 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, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.messaging.mail.api.BaseMail
addAttachment, addBcc, addBcc, addCc, addCc, addReplyTo, addReplyTo, addReplyTo, addTo, addTo, addTo, clearAttachments, clearBcc, clearCc, clearReplyTo, clearTo, createAttachment, createAttachment, createAttachment, getAttachments, getBcc, getCc, getFrom, getHtml, getReplyTo, getSubject, getText, getTo, setFrom, setHtml, setSubject, setText
Methods inherited from interface ch.tocco.nice2.messaging.mail.api.Mail
containsAttachment, removeAttachment
-
Field Details
-
session
protected final jakarta.mail.Session session -
messageReader
-
-
Constructor Details
-
MailImpl
public MailImpl(String subject, jakarta.mail.Session session, MessageProcessor processor, PersistenceService persistenceService, org.slf4j.Logger log, TemplateEngineFactory templateEngineFactory, MailArchive mailArchive, MailSendThrottle mailSendThrottle, Boolean encodeFileNames, MessageReader messageReader)
-
-
Method Details
-
getBody
- Throws:
MailException
-
getMimeMessageHeaders
public Map<String,Iterable<String>> getMimeMessageHeaders() throws MailException, jakarta.mail.MessagingException- Throws:
MailException
jakarta.mail.MessagingException
-
getMimeMessageFrom
- Throws:
jakarta.mail.MessagingException
MailException
-
doSend
- Specified by:
doSend
in classAbstractOutgoingMail
- Throws:
MailException
-
clone
- Specified by:
clone
in interfaceMail
- Overrides:
clone
in classAbstractOutgoingMail
- Throws:
CloneNotSupportedException
-