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
    boolean beforeSend​(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
  • Constructor Details

  • Method Details

    • beforeSend

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