Package com.onec.mail.dispatch
Class LoggingMailDispatcher
java.lang.Object
com.onec.mail.dispatch.LoggingMailDispatcher
- All Implemented Interfaces:
MailDispatcher
Dev dispatcher (
provider=log). Logs the message instead of sending it.
Useful in local/test profiles where no real provider should be hit.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatch(MailMessage message) Synchronously deliver a message to the provider.name()Stable provider id, e.g.
-
Constructor Details
-
LoggingMailDispatcher
public LoggingMailDispatcher()
-
-
Method Details
-
name
Description copied from interface:MailDispatcherStable provider id, e.g. "smtp", "sendgrid", "ses".- Specified by:
namein interfaceMailDispatcher
-
dispatch
Description copied from interface:MailDispatcherSynchronously deliver a message to the provider. ThrowsMailDeliveryExceptionon failure.- Specified by:
dispatchin interfaceMailDispatcher
-