Package mireka.smtp

Class SmtpReplyTemplate


  • public class SmtpReplyTemplate
    extends Object
    A template for an SMTP reply to be sent. It is used to specify a custom reply for specific event in the configuration.
    • Field Detail

      • code

        public int code
        0 means default
      • enhancedCode

        public String enhancedCode
        null means default
      • text

        public String text
        null means default
    • Constructor Detail

      • SmtpReplyTemplate

        public SmtpReplyTemplate()
      • SmtpReplyTemplate

        public SmtpReplyTemplate​(int code,
                                 String enhancedCode,
                                 String text)
    • Method Detail

      • checkFullySpecified

        public void checkFullySpecified()
                                 throws IllegalArgumentException
        Throws:
        IllegalArgumentException
      • resolveDefaultsFrom

        public SmtpReplyTemplate resolveDefaultsFrom​(SmtpReplyTemplate... replies)
        Parameters:
        replies - first element must be the most specific
        Returns:
        this
      • toEnhancedStatus

        public EnhancedStatus toEnhancedStatus()
        Converts this fully specified object to an SMTP enhanced status message.