org.mentawai.mail
Class VelocityLetter

java.lang.Object
  extended by org.mentawai.mail.VelocityLetter
All Implemented Interfaces:
Letter

public class VelocityLetter
extends Object
implements Letter


Field Summary
static String CHARSET
           
 
Constructor Summary
VelocityLetter(String filename)
           
VelocityLetter(String filename, String dir)
           
 
Method Summary
 String getSubject()
           
 String getSubject(Locale loc)
           
 String getText()
           
 String getText(Locale loc)
           
 void setAttribute(String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHARSET

public static String CHARSET
Constructor Detail

VelocityLetter

public VelocityLetter(String filename)

VelocityLetter

public VelocityLetter(String filename,
                      String dir)
               throws Exception
Throws:
Exception
Method Detail

setAttribute

public void setAttribute(String name,
                         Object value)
Specified by:
setAttribute in interface Letter

getText

public String getText(Locale loc)
               throws Exception
Specified by:
getText in interface Letter
Throws:
Exception

getText

public String getText()
               throws Exception
Specified by:
getText in interface Letter
Throws:
Exception

getSubject

public String getSubject(Locale loc)
                  throws Exception
Specified by:
getSubject in interface Letter
Throws:
Exception

getSubject

public String getSubject()
                  throws Exception
Specified by:
getSubject in interface Letter
Throws:
Exception


Copyright © 2013. All Rights Reserved.