org.jbpm.pvm.internal.email.impl
Class MailProducerImpl
java.lang.Object
org.jbpm.pvm.internal.email.impl.MailProducerImpl
- All Implemented Interfaces:
- java.io.Serializable, MailProducer
public class MailProducerImpl
- extends java.lang.Object
- implements MailProducer, java.io.Serializable
Default mail producer.
- Author:
- Alejandro Guizar, Huisheng Xu
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailProducerImpl
public MailProducerImpl()
getTemplate
public MailTemplate getTemplate()
setTemplate
public void setTemplate(MailTemplate template)
produce
public java.util.Collection<javax.mail.Message> produce(Execution execution)
- Specified by:
produce in interface MailProducer
instantiateEmail
protected javax.mail.Message instantiateEmail()
fillFrom
protected void fillFrom(Execution execution,
javax.mail.Message email)
throws javax.mail.MessagingException
- Fills the
from attribute of the given email. The sender addresses are an
optional element in the mail template. If absent, each mail server supplies the current
user's email address.
- Throws:
javax.mail.MessagingException- See Also:
InternetAddress#getLocalAddress(Session)}
fillRecipients
protected void fillRecipients(Execution execution,
javax.mail.Message email)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
fillSubject
protected void fillSubject(Execution execution,
javax.mail.Message email)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
fillContent
protected void fillContent(Execution execution,
javax.mail.Message email)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
addAttachments
protected void addAttachments(Execution execution,
javax.mail.Multipart multipart)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
Copyright © 2010 JBoss Community. All Rights Reserved.