Class FreemarkerEmailFactory


  • public class FreemarkerEmailFactory
    extends Object
    A factory that creates Freemarker-based email messages. Client code should call isConfigured(), to be sure that the required email properties have been provided. If isConfigured() returns false, the client code should respond accordingly. On the other hand, if the configuration properties are provided, but are syntactically invalid, an exception is thrown and startup is aborted.
    • Constructor Detail

      • FreemarkerEmailFactory

        public FreemarkerEmailFactory​(javax.servlet.ServletContext ctx)
    • Method Detail

      • getEmailSession

        public static javax.mail.Session getEmailSession​(javax.servlet.http.HttpServletRequest req)
        Client code that does not use the FreemarkerEmailFactory can still use it's Email Session.
      • isConfigured

        public static boolean isConfigured​(javax.servlet.http.HttpServletRequest req)