Class 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
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
      • mFileContents

        public java.lang.String mFileContents
    • Constructor Detail

      • EmailTemplate

        public EmailTemplate​(java.lang.String templatePath)
        Default Constructor
        Parameters:
        templatePath - File name of the template including the full path and file extension
    • Method Detail

      • getTemplateName

        public java.lang.String getTemplateName()
        Specified by:
        getTemplateName in interface IEmailTemplate
        Returns:
        Template Name in string form
      • isHTML

        public boolean isHTML()
        Specified by:
        isHTML in interface IEmailTemplate
        Returns:
        true if template is an html file, false otherwise
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface IEmailTemplate
        Overrides:
        toString in class java.lang.Object
        Returns:
        Content of the template