|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMailFactory
Description: This is the main class. This interface functions as facade for the MailReader, MailReplacer,
MailSender and the PropertiesLoader.
........
.WHHUUVOOOOU&,
dMMMMMMMMMMMa, .MMMMF .MHW0Oz+!``````?G. .MMMM% .MMMMMMMMMMMN,
.MMMMMMMMMMMMMMr JMMMM JHHXwOz;:^..``` `O, JMMM# dMMMMMMMMMMMMN
JMMM# ,MMMMF MMMMF .MHVXwOz++.^.```` +n .MMMM$ .MMMMt dMMM#
.MMMMt .MMMMt .MMMM! JMHWWXwOz++.... `.+X JMMMM JMMMM .MMMM%
JMMM# .MMMM@ dMMM# ,MHHWWXwOzz+++....?df MMMMF .MMMMF JMMM#
.MMMMNNNNNMMMMMD MMMMMNNm 4MHHWWXXwOOzzz1+1wX'.MMMM! .MMMM` .MMMM$
.MMMMMMMMMMMM"` .YMMMMMF TMHHHWWWXXXwwwwXK! MMMMF MMMMF JMMMM
MMMMF TMMHHHHHWWWHY^
.MMMM' `7""""^`
dMMM#
| Method Summary | |
|---|---|
java.lang.String |
getDirectory()
Returns the directory where the email-templates and the mandants are in. |
java.lang.String |
getHtmlExtension()
returns the html extension. |
java.lang.String |
getHtmlMessage(TemplateConfig templateConfig)
This method tries to find a HTML template file with the given name ("mailname"), fills it with the values from the map and returns the filled template. |
IMailReader |
getMailReader()
Returns the IMailReader |
IMailReplacer |
getMailReplacer()
Returns the IMailReplacer |
IMailSender |
getMailSender()
Returns the IMailSender |
java.lang.String |
getPlainExtension()
returns the plain extension. |
java.lang.String |
getPlainMessage(TemplateConfig templateConfig)
This method tries to find a plain-text template file with the given name ("mailname"), fills it with the values from the map and returns the filled template. |
IPropertiesLoader |
getPropertiesLoader()
Returns the IPropertiesLoader |
void |
init()
Initialize the mail Factory |
boolean |
isSingleThread()
returns the variable "singleThread" |
SendingResult |
sendMail(MailConfig mailConfig,
TemplateConfig templateConfig)
This is the main method. |
SendingResult |
sendMailWithContent(MailConfig mailConfig,
TemplateConfig templateConfig,
java.lang.String plainReplaced,
java.lang.String htmlReplaced)
This method sends an e-mail with the given plainReplaced content and htmlReplaced content. |
void |
setDirectory(java.lang.String directory)
Set teh directory where the email-templates and the mandants are in. |
void |
setHtmlExtension(java.lang.String htmlExtension)
Set the html extension. |
void |
setMailReader(IMailReader mailReader)
Set the IMailReader |
void |
setMailReplacer(IMailReplacer mailReplacer)
Set the IMailReplacer |
void |
setMailSender(IMailSender mailSender)
Set the IMailSender |
void |
setPlainExtension(java.lang.String plainExtendsion)
Set the plain extension. |
void |
setPropertiesLoader(IPropertiesLoader propertiesLoader)
Set the IPropertiesLoader |
void |
setSingleThread(boolean singleThread)
Set the singleThread |
| Method Detail |
|---|
void init()
SendingResult sendMail(MailConfig mailConfig,
TemplateConfig templateConfig)
mailConfig - the object containing the recipients and the mandanttemplateConfig - containing mandant/client, locale, template-name and map.
SendingResult sendMailWithContent(MailConfig mailConfig,
TemplateConfig templateConfig,
java.lang.String plainReplaced,
java.lang.String htmlReplaced)
throws java.lang.Exception
mailConfig - the mailConfig objecttemplateConfig - containing mandant/client, locale, template-name and map.plainReplaced - the plain text content to be send in the email.htmlReplaced - the HTML content to be send in the email.
java.lang.Exceptionjava.lang.String getPlainMessage(TemplateConfig templateConfig)
templateConfig - containing mandant/client, locale, template-name and map.
java.lang.String getHtmlMessage(TemplateConfig templateConfig)
templateConfig - containing mandant/client, locale, template-name and map.
IMailReader getMailReader()
void setMailReader(IMailReader mailReader)
mailReader - IMailReplacer getMailReplacer()
void setMailReplacer(IMailReplacer mailReplacer)
mailReplacer - IMailSender getMailSender()
void setMailSender(IMailSender mailSender)
mailSender - IPropertiesLoader getPropertiesLoader()
void setPropertiesLoader(IPropertiesLoader propertiesLoader)
propertiesLoader - java.lang.String getDirectory()
void setDirectory(java.lang.String directory)
directory - java.lang.String getHtmlExtension()
void setHtmlExtension(java.lang.String htmlExtension)
htmlExtension - java.lang.String getPlainExtension()
void setPlainExtension(java.lang.String plainExtendsion)
plainExtendsion - boolean isSingleThread()
void setSingleThread(boolean singleThread)
singleThread -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||