Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.automation.core.mail
Class Composer

java.lang.Object
  extended by org.nuxeo.ecm.automation.core.mail.Composer

public class Composer
extends java.lang.Object

Author:
Bogdan Stefanescu

Constructor Summary
Composer()
           
Composer(Mailer mailer)
           
 
Method Summary
 FreemarkerEngine getEngine()
           
 Mailer getMailer()
           
static void main(java.lang.String[] args)
           
 Mailer.Message newHtmlMessage(java.net.URL template, java.lang.Object ctx)
           
 Mailer.Message newMessage()
           
 Mailer.Message newTextMessage(java.lang.String templateContent, java.lang.Object ctx)
           
 Mailer.Message newTextMessage(java.net.URL template, java.lang.Object ctx)
           
 void registerTemplate(java.net.URL url)
           
 java.lang.String render(java.lang.String templateContent, java.lang.Object ctx)
           
 void render(java.lang.String template, java.lang.Object ctx, java.io.Writer writer)
           
 java.lang.String render(java.net.URL template, java.lang.Object ctx)
           
 void render(java.net.URL template, java.lang.Object ctx, java.io.Writer writer)
           
 void unregisterAllTemplates()
           
 void unregisterTemplate(java.net.URL url)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Composer

public Composer()

Composer

public Composer(Mailer mailer)
Method Detail

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.