public class MailTemplate
extends java.lang.Object
Constructor and Description |
---|
MailTemplate() |
MailTemplate(java.lang.String subjectTemplate,
java.lang.String messageTemplate,
java.util.Map<java.lang.String,java.lang.Object> dataMap) |
Modifier and Type | Method and Description |
---|---|
void |
addReplacement(java.lang.String key,
java.lang.Object value) |
void |
configureMail(SimpleMail mail,
SimpleJuel juel,
SimpleAttachment... attachments) |
java.util.Map<java.lang.String,java.lang.Object> |
getDataMap() |
java.lang.String |
getMessageTemplate() |
java.lang.String |
getSubjectTemplate() |
boolean |
isHtml() |
void |
setDataMap(java.util.Map<java.lang.String,java.lang.Object> dataMap) |
void |
setHtml(boolean html) |
void |
setMessageTemplate(java.lang.String messageTemplate) |
void |
setSubjectTemplate(java.lang.String subjectTemplate) |
public MailTemplate()
public MailTemplate(java.lang.String subjectTemplate, java.lang.String messageTemplate, java.util.Map<java.lang.String,java.lang.Object> dataMap)
public void addReplacement(java.lang.String key, java.lang.Object value)
public java.lang.String getSubjectTemplate()
public void setSubjectTemplate(java.lang.String subjectTemplate)
public java.lang.String getMessageTemplate()
public void setMessageTemplate(java.lang.String messageTemplate)
public java.util.Map<java.lang.String,java.lang.Object> getDataMap()
public void setDataMap(java.util.Map<java.lang.String,java.lang.Object> dataMap)
public void setHtml(boolean html)
public boolean isHtml()
public void configureMail(SimpleMail mail, SimpleJuel juel, SimpleAttachment... attachments)