|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.mime.filler.MIMEMessageFiller
public class MIMEMessageFiller
MIMEMessageFiller - Provides basic methods to fills an instance of MimeMessage with headers/contents given through an
instance of ComposedMailMessage
| Constructor Summary | |
|---|---|
MIMEMessageFiller(com.openexchange.session.Session session,
com.openexchange.groupware.contexts.Context ctx)
Initializes a new MIMEMessageFiller |
|
MIMEMessageFiller(com.openexchange.session.Session session,
com.openexchange.groupware.contexts.Context ctx,
UserSettingMail usm)
Initializes a new MIMEMessageFiller |
|
| Method Summary | |
|---|---|
void |
deleteReferencedUploadFiles()
Deletes referenced local uploaded files from session and disk after filled instance of is dispatched |
void |
fillMailBody(ComposedMailMessage mail,
javax.mail.internet.MimeMessage mimeMessage,
ComposeType type)
Fills the body of given instance of MimeMessage with the contents specified through given instance of
ComposedMailMessage. |
void |
setCommonHeaders(javax.mail.internet.MimeMessage mimeMessage)
Sets common headers in given MIME message: X-Mailer and Organization. |
void |
setMessageHeaders(ComposedMailMessage mail,
javax.mail.internet.MimeMessage mimeMessage)
Sets necessary headers in specified MIME message: From/ Sender, To, Cc,
Bcc, Reply-To, Subject, etc. |
void |
setReplyHeaders(MailMessage referencedMail,
javax.mail.internet.MimeMessage mimeMessage)
Sets the appropriate headers In-Reply-To and References in specified MIME message. |
void |
setSendHeaders(ComposedMailMessage mail,
javax.mail.internet.MimeMessage mimeMessage)
Sets the appropriate headers before message's transport: Reply-To, Date, and Subject |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MIMEMessageFiller(com.openexchange.session.Session session,
com.openexchange.groupware.contexts.Context ctx)
MIMEMessageFiller
session - The session providing user datactx - The context
public MIMEMessageFiller(com.openexchange.session.Session session,
com.openexchange.groupware.contexts.Context ctx,
UserSettingMail usm)
MIMEMessageFiller
session - The session providing user datactx - The contextusm - The user's mail settings| Method Detail |
|---|
public void deleteReferencedUploadFiles()
MimeMessage is dispatched
public void setCommonHeaders(javax.mail.internet.MimeMessage mimeMessage)
throws javax.mail.MessagingException
X-Mailer and Organization.
mimeMessage - The MIME message
javax.mail.MessagingException - If headers cannot be set
public void setMessageHeaders(ComposedMailMessage mail,
javax.mail.internet.MimeMessage mimeMessage)
throws javax.mail.MessagingException,
MailException
From/ Sender, To, Cc,
Bcc, Reply-To, Subject, etc.
mail - The composed mailmimeMessage - The MIME message
javax.mail.MessagingException - If headers cannot be set
MailException - If a mail error occurs
public void setReplyHeaders(MailMessage referencedMail,
javax.mail.internet.MimeMessage mimeMessage)
throws javax.mail.MessagingException
In-Reply-To and References in specified MIME message.
Moreover the Reply-To header is set.
referencedMail - The referenced mailmimeMessage - The MIME message
javax.mail.MessagingException - If setting the reply headers fails
public void setSendHeaders(ComposedMailMessage mail,
javax.mail.internet.MimeMessage mimeMessage)
throws MailException
Reply-To, Date, and Subject
mail - The source mailmimeMessage - The MIME message
MailException - If a mail error occurs
public void fillMailBody(ComposedMailMessage mail,
javax.mail.internet.MimeMessage mimeMessage,
ComposeType type)
throws javax.mail.MessagingException,
MailException,
java.io.IOException
MimeMessage with the contents specified through given instance of
ComposedMailMessage.
mail - The source composed mailmimeMessage - The MIME message to filltype - The compose type
javax.mail.MessagingException - If a messaging error occurs
MailException - If a mail error occurs
java.io.IOException - If an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||