Package com.consol.citrus.mail.model
Class MailResponse
- java.lang.Object
-
- com.consol.citrus.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
-
-
Constructor Summary
Constructors Constructor Description MailResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()Gets the response code.StringgetMessage()Gets the reject message.voidsetCode(int code)Sets the response code.voidsetMessage(String message)Sets the reject message.
-
-
-
Field Detail
-
OK_CODE
public static final int OK_CODE
Default ok code- See Also:
- Constant Field Values
-
OK_MESSAGE
public static final String OK_MESSAGE
- See Also:
- Constant Field Values
-
code
protected int code
-
message
protected String message
-
-
Method Detail
-
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-
-
-