Class EmailTemplate
- java.lang.Object
-
- com.netscape.cmscore.notification.EmailTemplate
-
- All Implemented Interfaces:
IEmailTemplate
public class EmailTemplate extends java.lang.Object implements IEmailTemplate
Files to be processed and returned to the requested parties. It is a template with $tokens to be used by the form/template processor.- Version:
- $Revision$, $Date$
- Author:
- cfu
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Loggerloggerjava.lang.StringmFileContents
-
Constructor Summary
Constructors Constructor Description EmailTemplate(java.lang.String templatePath)Default Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetTemplateName()booleaninit()booleanisHTML()intlength()java.lang.StringtoString()
-
-
-
Method Detail
-
init
public boolean init()
- Specified by:
initin interfaceIEmailTemplate
-
getTemplateName
public java.lang.String getTemplateName()
- Specified by:
getTemplateNamein interfaceIEmailTemplate- Returns:
- Template Name in string form
-
isHTML
public boolean isHTML()
- Specified by:
isHTMLin interfaceIEmailTemplate- Returns:
- true if template is an html file, false otherwise
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfaceIEmailTemplate- Overrides:
toStringin classjava.lang.Object- Returns:
- Content of the template
-
length
public int length()
- Specified by:
lengthin interfaceIEmailTemplate
-
-