Package org.iplass.mtp.mail.listeners
Class LoggingSendMailListener
java.lang.Object
org.iplass.mtp.mail.listeners.LoggingSendMailListener
- All Implemented Interfaces:
SendMailListener
送信メールをLogに出力します。
※標準のLog設定では改行をブランクに置き換えているため、改行されずに出力されます。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbeforeSend(Mail mail) メール送信前に呼び出されます。 デフォルト実装では何もしません(return trueします)。Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.iplass.mtp.mail.SendMailListener
onFailure, onSuccess
-
Constructor Details
-
LoggingSendMailListener
public LoggingSendMailListener()
-
-
Method Details
-
beforeSend
Description copied from interface:SendMailListenerメール送信前に呼び出されます。 デフォルト実装では何もしません(return trueします)。- Specified by:
beforeSendin interfaceSendMailListener- Parameters:
mail-- Returns:
- もし、当該メール送信後続処理を中止する場合はfalse
-