|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.bc.mail.MimeMessageManager
public class MimeMessageManager
This class is used to process (reading or creating) mail messages
| Field Summary | |
|---|---|
protected java.util.logging.Logger |
log
|
| Constructor Summary | |
|---|---|
MimeMessageManager(java.util.logging.Logger log)
|
|
| Method Summary | |
|---|---|
javax.mail.internet.MimeMessage |
mapNormalizedMessageToMimeMessage(javax.mail.Session session,
ProvideDescriptor provideDescriptor,
org.ow2.petals.component.framework.api.message.Exchange exchange,
org.w3c.dom.Node rootNode)
Create a MimeMessage from the given NormalizedMessage,
including mail Session information. |
protected void |
setMimeMessageAttachments(javax.mail.Multipart multipart,
org.ow2.petals.component.framework.api.message.Exchange exchange,
org.w3c.dom.Node rootNode)
Add NormalizedMessage attachments to MimeMessage
attachments. |
protected void |
setMimeMessageAttributes(javax.mail.internet.MimeMessage mimeMessage,
java.lang.String toAddress,
java.lang.String fromAddress,
java.lang.String subject)
Set MimeMessage recipient, date, from and subject. |
protected void |
setMimeMessageBody(javax.mail.Multipart multipart,
java.lang.String content,
java.lang.String contentType)
Set the MimeMessage body from the given content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.logging.Logger log
| Constructor Detail |
|---|
public MimeMessageManager(java.util.logging.Logger log)
log - the component Loggerchannel - the component DeliveryChannel| Method Detail |
|---|
public javax.mail.internet.MimeMessage mapNormalizedMessageToMimeMessage(javax.mail.Session session,
ProvideDescriptor provideDescriptor,
org.ow2.petals.component.framework.api.message.Exchange exchange,
org.w3c.dom.Node rootNode)
throws javax.jbi.messaging.MessagingException,
MissingElementException
MimeMessage from the given NormalizedMessage,
including mail Session information.
session - the mail SessionprovideDescriptor - the SessionDescriptorexchange - the mapped NormalizedMessagerootNode - TODO
MimeMessage
javax.mail.MessagingException - if an error occurs during MimeMessage creation
MissingElementException
javax.jbi.messaging.MessagingException
protected void setMimeMessageAttachments(javax.mail.Multipart multipart,
org.ow2.petals.component.framework.api.message.Exchange exchange,
org.w3c.dom.Node rootNode)
throws javax.jbi.messaging.MessagingException
NormalizedMessage attachments to MimeMessage
attachments. If an error occurs during the transmission of an attachment,
it is skipped and the process continues with other attachments.
multipart - the Multipart used to handle attachmentsin - the NormalizedMessage handling attachments that have
to be transmitted
javax.jbi.messaging.MessagingException
protected void setMimeMessageAttributes(javax.mail.internet.MimeMessage mimeMessage,
java.lang.String toAddress,
java.lang.String fromAddress,
java.lang.String subject)
throws javax.jbi.messaging.MessagingException
MimeMessage recipient, date, from and subject.
mimeMessage - the MimeMessage to setinternetAddress - the InternetAddress of the recipientfromInternetAddress - the InternetAddress of the sendersubject - the mail subject
javax.jbi.messaging.MessagingException
protected void setMimeMessageBody(javax.mail.Multipart multipart,
java.lang.String content,
java.lang.String contentType)
throws javax.mail.MessagingException
MimeMessage body from the given content.
multipart - the Multipart that will handle the
NormalizedMessage contentcontent - the content
javax.mail.MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||