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.Logger
logger
java.lang.String
mFileContents
-
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.String
getTemplateName()
boolean
init()
boolean
isHTML()
int
length()
java.lang.String
toString()
-
-
-
Method Detail
-
init
public boolean init()
- Specified by:
init
in interfaceIEmailTemplate
-
getTemplateName
public java.lang.String getTemplateName()
- Specified by:
getTemplateName
in interfaceIEmailTemplate
- Returns:
- Template Name in string form
-
isHTML
public boolean isHTML()
- Specified by:
isHTML
in interfaceIEmailTemplate
- Returns:
- true if template is an html file, false otherwise
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfaceIEmailTemplate
- Overrides:
toString
in classjava.lang.Object
- Returns:
- Content of the template
-
length
public int length()
- Specified by:
length
in interfaceIEmailTemplate
-
-