org.nuxeo.ecm.automation.core.mail
Class Composer
java.lang.Object
org.nuxeo.ecm.automation.core.mail.Composer
public class Composer
- extends java.lang.Object
- Author:
- Bogdan Stefanescu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Composer
public Composer()
Composer
public Composer(Mailer mailer)
registerTemplate
public void registerTemplate(java.net.URL url)
unregisterTemplate
public void unregisterTemplate(java.net.URL url)
unregisterAllTemplates
public void unregisterAllTemplates()
getMailer
public Mailer getMailer()
getEngine
public FreemarkerEngine getEngine()
render
public void render(java.lang.String template,
java.lang.Object ctx,
java.io.Writer writer)
throws RenderingException
- Throws:
RenderingException
render
public void render(java.net.URL template,
java.lang.Object ctx,
java.io.Writer writer)
throws RenderingException
- Throws:
RenderingException
render
public java.lang.String render(java.net.URL template,
java.lang.Object ctx)
throws RenderingException
- Throws:
RenderingException
render
public java.lang.String render(java.lang.String templateContent,
java.lang.Object ctx)
throws java.lang.Exception
- Throws:
java.lang.Exception
newMessage
public Mailer.Message newMessage()
throws java.lang.Exception
- Throws:
java.lang.Exception
newTextMessage
public Mailer.Message newTextMessage(java.net.URL template,
java.lang.Object ctx)
throws java.lang.Exception
- Throws:
java.lang.Exception
newTextMessage
public Mailer.Message newTextMessage(java.lang.String templateContent,
java.lang.Object ctx)
throws java.lang.Exception
- Throws:
java.lang.Exception
newHtmlMessage
public Mailer.Message newHtmlMessage(java.net.URL template,
java.lang.Object ctx)
throws java.lang.Exception
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2010 Nuxeo SAS. All Rights Reserved.