|
||||||||||
| 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.
| Method Summary | |
|---|---|
String |
getDirectory()
Returns the directory where the email-templates and the clients are in. |
String |
getHtmlExtension()
returns the html extension. |
String |
getHtmlMessage(TemplateConfig templateConfig)
This method tries to find a HTML template file with the given name in the templateConfig, 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 |
String |
getPlainExtension()
returns the plain extension. |
String |
getPlainMessage(TemplateConfig templateConfig)
This method tries to find a plain-text template file with the given name in the templateConfig, 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,
String plainReplaced,
String htmlReplaced)
This method sends an e-mail with the given plainReplaced content and htmlReplaced content. |
void |
setDirectory(String directory)
Set teh directory where the email-templates and the clients are in. |
void |
setHtmlExtension(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(String plainExtendsion)
Set the plain extension. |
void |
setPropertiesLoader(IPropertiesLoader propertiesLoader)
Set the IPropertiesLoader |
void |
setSingleThread(boolean singleThread)
Set the singleThread |
| Method Detail |
|---|
void init()
throws MailFactoryException
MailFactoryException
SendingResult sendMail(MailConfig mailConfig,
TemplateConfig templateConfig)
throws MailFactoryException
mailConfig - the object containing the recipients and the clienttemplateConfig - containing client, locale, template-name and map.
MailFactoryException
SendingResult sendMailWithContent(MailConfig mailConfig,
TemplateConfig templateConfig,
String plainReplaced,
String htmlReplaced)
throws MailFactoryException
mailConfig - the mailConfig objecttemplateConfig - containing 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.
Exception
MailFactoryException
String getPlainMessage(TemplateConfig templateConfig)
throws MailFactoryException
templateConfig - containing client, locale, template-name and map.
MailFactoryException
String getHtmlMessage(TemplateConfig templateConfig)
throws MailFactoryException
templateConfig - containing client, locale, template-name and map.
MailFactoryExceptionIMailReader 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 - String getDirectory()
void setDirectory(String directory)
directory - String getHtmlExtension()
void setHtmlExtension(String htmlExtension)
htmlExtension - String getPlainExtension()
void setPlainExtension(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 | |||||||||