Package com.onec.mail
Class MailProperties
java.lang.Object
com.onec.mail.MailProperties
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConfig for thefailovercomposite dispatcher: tries each named provider in order.static classConfig for thefiledev dispatcher, which writes messages to disk instead of sending.static classConfig for the universalhttpdispatcher: POSTs a rendered JSON body to any provider's REST API.static classDev-only HTTP endpoints for listing and rendering templates.static classBackground relay that drains the outbox on a fixed schedule.static classInbound provider webhook (bounces/complaints) that feeds the suppression list. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFile()getHttp()getRelay()intbooleanbooleanbooleanvoidsetBasePackages(List<String> basePackages) voidsetDefaultFrom(String defaultFrom) voidsetDerivePlainText(boolean derivePlainText) voidsetEnabled(boolean enabled) voidsetEncoding(String encoding) voidsetFailover(MailProperties.Failover failover) voidsetFile(MailProperties.File file) voidsetHttp(MailProperties.Http http) voidsetPreview(MailProperties.Preview preview) voidsetProvider(String provider) voidsetRelay(MailProperties.Relay relay) voidsetRelayBatchSize(int relayBatchSize) voidsetUseOutbox(boolean useOutbox) voidsetWebhook(MailProperties.Webhook webhook)
-
Constructor Details
-
MailProperties
public MailProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getProvider
-
setProvider
-
getDefaultFrom
-
setDefaultFrom
-
getBasePackages
-
setBasePackages
-
getRelayBatchSize
public int getRelayBatchSize() -
setRelayBatchSize
public void setRelayBatchSize(int relayBatchSize) -
isUseOutbox
public boolean isUseOutbox() -
setUseOutbox
public void setUseOutbox(boolean useOutbox) -
getEncoding
-
setEncoding
-
isDerivePlainText
public boolean isDerivePlainText() -
setDerivePlainText
public void setDerivePlainText(boolean derivePlainText) -
getRelay
-
setRelay
-
getFile
-
setFile
-
getHttp
-
setHttp
-
getFailover
-
setFailover
-
getPreview
-
setPreview
-
getWebhook
-
setWebhook
-