Class SMTPConfig

java.lang.Object
org.summerboot.jexpress.boot.config.BootConfig
org.summerboot.jexpress.integration.smtp.SMTPConfig
All Implemented Interfaces:
JExpressConfig

public class SMTPConfig extends BootConfig
Volatile Bean Pattern
Author:
Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
  • Field Details

    • CFG

      public static final SMTPConfig CFG
    • smtpHost

      @Memo(title="1. SMTP Settings") @Config(key="mail.smtp.host") protected volatile String smtpHost
    • smtpPort

      @Config(key="mail.smtp.port", required=false) protected volatile int smtpPort
    • smtpAuth

      @Config(key="mail.smtp.auth", required=false) protected volatile boolean smtpAuth
    • smtpStarttls

      @Config(key="mail.smtp.starttls.enable", required=false) protected volatile boolean smtpStarttls
    • smtpUserDisplayName

      @Config(key="mail.smtp.userName", desc="Display name") protected volatile String smtpUserDisplayName
    • smtpUser

      @Config(key="mail.smtp.user", desc="Email account") protected volatile String smtpUser
    • smtpPassword

      @Config(key="mail.smtp.pwd", validate=Encrypted, required=false) protected volatile String smtpPassword
    • emailToAppSupport

      @Memo(title="2. Alert Recipients", format="CSV format", example="johndoe@test.com, janedoe@test.com") @Config(key="email.to.AppSupport", required=false) protected volatile Set<String> emailToAppSupport
    • emailToDevelopment

      @Config(key="email.to.Development", required=false, desc="use AppSupport if not provided") protected volatile Set<String> emailToDevelopment
    • emailToReportViewer

      @Config(key="email.to.ReportViewer", required=false, desc="use AppSupport if not provided") protected volatile Set<String> emailToReportViewer
    • emailAlertDebouncingInterval

      @Config(key="debouncing.emailalert_minute", defaultValue="30", desc="Alert message with the same title will not be sent out within this minutes") protected volatile int emailAlertDebouncingInterval
  • Constructor Details

    • SMTPConfig

      public SMTPConfig()
  • Method Details

    • main

      public static void main(String[] args)
    • shutdown

      public void shutdown()
    • loadCustomizedConfigs

      protected void loadCustomizedConfigs(File cfgFile, boolean isReal, ConfigUtil helper, Properties props)
      Specified by:
      loadCustomizedConfigs in class BootConfig
    • getMailSession

      public jakarta.mail.Session getMailSession()
    • getEmailToAppSupport

      public Set<String> getEmailToAppSupport()
    • getEmailToDevelopment

      public Set<String> getEmailToDevelopment()
    • getEmailToReportViewer

      public Set<String> getEmailToReportViewer()
    • getEmailAlertDebouncingInterval

      public int getEmailAlertDebouncingInterval()