Class SMTPConfig
java.lang.Object
org.summerboot.jexpress.boot.config.BootConfig
org.summerboot.jexpress.integration.smtp.SMTPConfig
- All Implemented Interfaces:
JExpressConfig
Volatile Bean Pattern
- Author:
- Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SMTPConfigprotected intprotected booleanprotected Stringprotected Stringprotected intprotected booleanprotected Stringprotected StringFields inherited from class org.summerboot.jexpress.boot.config.BootConfig
cfgFile, configName, log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintjakarta.mail.Sessionprotected voidloadCustomizedConfigs(File cfgFile, boolean isReal, ConfigUtil helper, Properties props) static voidvoidshutdown()Methods inherited from class org.summerboot.jexpress.boot.config.BootConfig
generateTemplate, getCfgFile, info, load, loadField, name, temp, updateConfigFile, updateFilePath
-
Field Details
-
CFG
-
smtpHost
-
smtpPort
-
smtpAuth
-
smtpStarttls
-
smtpUserDisplayName
-
smtpUser
-
smtpPassword
-
emailToAppSupport
-
emailToDevelopment
-
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
-
shutdown
public void shutdown() -
loadCustomizedConfigs
protected void loadCustomizedConfigs(File cfgFile, boolean isReal, ConfigUtil helper, Properties props) - Specified by:
loadCustomizedConfigsin classBootConfig
-
getMailSession
public jakarta.mail.Session getMailSession() -
getEmailToAppSupport
-
getEmailToDevelopment
-
getEmailToReportViewer
-
getEmailAlertDebouncingInterval
public int getEmailAlertDebouncingInterval()
-