Class EmailTemplate
java.lang.Object
com.netscape.cmscore.notification.EmailTemplate
- All Implemented Interfaces:
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 -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
logger
public static org.slf4j.Logger logger -
mFileContents
-
-
Constructor Details
-
EmailTemplate
Default Constructor- Parameters:
templatePath
- File name of the template including the full path and file extension
-
-
Method Details
-
init
public boolean init()- Specified by:
init
in interfaceIEmailTemplate
-
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
- Specified by:
toString
in interfaceIEmailTemplate
- Overrides:
toString
in classObject
- Returns:
- Content of the template
-
length
public int length()- Specified by:
length
in interfaceIEmailTemplate
-