Package mireka.smtp
Class SmtpReplyTemplate
- Object
-
- mireka.smtp.SmtpReplyTemplate
-
public class SmtpReplyTemplate extends ObjectA template for an SMTP reply to be sent. It is used to specify a custom reply for specific event in the configuration.
-
-
Field Summary
Fields Modifier and Type Field Description intcode0 means defaultStringenhancedCodenull means defaultStringtextnull means default
-
Constructor Summary
Constructors Constructor Description SmtpReplyTemplate()SmtpReplyTemplate(int code, String enhancedCode, String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckFullySpecified()SmtpReplyTemplateformat(Object... arguments)SmtpReplyTemplateresolveDefaultsFrom(SmtpReplyTemplate... replies)EnhancedStatustoEnhancedStatus()Converts this fully specified object to an SMTP enhanced status message.
-
-
-
Method Detail
-
checkFullySpecified
public void checkFullySpecified() throws IllegalArgumentException- Throws:
IllegalArgumentException
-
format
public SmtpReplyTemplate format(Object... arguments)
-
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.
-
-