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