Class MailResponse

java.lang.Object
org.citrusframework.mail.model.MailResponse

public class MailResponse extends Object
Custom mail message response used to respond to SMTP command with a specific code and message. By default SMTP command is responded with success OK. User can also specify reject message and code in order to abort SMTP mail communication with error.
Since:
1.4
Author:
Christoph Deppisch
  • Field Details

  • Constructor Details

    • MailResponse

      public MailResponse()
  • Method Details

    • getCode

      public int getCode()
      Gets the response code.
      Returns:
    • setCode

      public void setCode(int code)
      Sets the response code.
      Parameters:
      code -
    • getMessage

      public String getMessage()
      Gets the reject message.
      Returns:
    • setMessage

      public void setMessage(String message)
      Sets the reject message.
      Parameters:
      message -