Class EmailFormProcessor

  • All Implemented Interfaces:
    com.netscape.certsrv.notification.IEmailFormProcessor

    public class EmailFormProcessor
    extends java.lang.Object
    implements com.netscape.certsrv.notification.IEmailFormProcessor
    formulates the final email. Escape character '\' is understood. '$' is used preceeding a token name. A token name should not be a substring of any other token name

    Version:
    $Revision$, $Date$
    Author:
    cfu
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger logger  
      protected static char TOK_END  
      protected static java.lang.String TOK_ESC  
      protected static java.lang.String TOK_PREFIX  
      protected static java.lang.String TOK_TOKEN_UNKNOWN  
      protected static java.lang.String TOK_VALUE_UNKNOWN  
      protected static java.lang.String[] token_keys  
      • Fields inherited from interface com.netscape.certsrv.notification.IEmailFormProcessor

        TOKEN_CERT_TYPE, TOKEN_EXECUTION_TIME, TOKEN_HEX_SERIAL_NUM, TOKEN_HTTP_HOST, TOKEN_HTTP_PORT, TOKEN_ID, TOKEN_ISSUER_DN, TOKEN_NOT_AFTER, TOKEN_NOT_BEFORE, TOKEN_RECIPIENT_EMAIL, TOKEN_REQUEST_ID, TOKEN_REQUEST_TYPE, TOKEN_REQUESTOR_EMAIL, TOKEN_REVOCATION_DATE, TOKEN_SENDER_EMAIL, TOKEN_SERIAL_NUM, TOKEN_STATUS, TOKEN_SUBJECT_DN, TOKEN_SUMMARY_FAILURE_NUM, TOKEN_SUMMARY_ITEM_LIST, TOKEN_SUMMARY_SUCCESS_NUM, TOKEN_SUMMARY_TOTAL_NUM
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String formContent​(java.util.Vector<java.lang.String> vec)
      takes a vector of strings and concatenate them
      java.lang.String getEmailContent​(java.lang.String form, java.util.Hashtable<java.lang.String,​java.lang.Object> tok2vals)  
      void log​(int level, java.lang.String msg)
      logs an entry in the log file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
      • TOK_VALUE_UNKNOWN

        protected static final java.lang.String TOK_VALUE_UNKNOWN
        See Also:
        Constant Field Values
      • TOK_TOKEN_UNKNOWN

        protected static final java.lang.String TOK_TOKEN_UNKNOWN
        See Also:
        Constant Field Values
      • token_keys

        protected static java.lang.String[] token_keys
    • Constructor Detail

      • EmailFormProcessor

        public EmailFormProcessor()
    • Method Detail

      • getEmailContent

        public java.lang.String getEmailContent​(java.lang.String form,
                                                java.util.Hashtable<java.lang.String,​java.lang.Object> tok2vals)
        Specified by:
        getEmailContent in interface com.netscape.certsrv.notification.IEmailFormProcessor
      • formContent

        public java.lang.String formContent​(java.util.Vector<java.lang.String> vec)
        takes a vector of strings and concatenate them
        Specified by:
        formContent in interface com.netscape.certsrv.notification.IEmailFormProcessor
      • log

        public void log​(int level,
                        java.lang.String msg)
        Description copied from interface: com.netscape.certsrv.notification.IEmailFormProcessor
        logs an entry in the log file.
        Specified by:
        log in interface com.netscape.certsrv.notification.IEmailFormProcessor