Class LoggingSendMailListener

  • All Implemented Interfaces:
    SendMailListener

    public class LoggingSendMailListener
    extends java.lang.Object
    implements SendMailListener
    送信メールをLogに出力します。 ※標準のLog設定では改行をブランクに置き換えているため、改行されずに出力されます。
    • Method Summary

      Modifier and Type Method Description
      boolean beforeSend​(Mail mail)
      メール送信前に呼び出されます。 デフォルト実装では何もしません(return trueします)。
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LoggingSendMailListener

        public LoggingSendMailListener()
    • Method Detail

      • beforeSend

        public boolean beforeSend​(Mail mail)
        Description copied from interface: SendMailListener
        メール送信前に呼び出されます。 デフォルト実装では何もしません(return trueします)。
        Specified by:
        beforeSend in interface SendMailListener
        Returns:
        もし、当該メール送信後続処理を中止する場合はfalse