Package org.citrusframework.mail.model
Class MailResponse
java.lang.Object
org.citrusframework.mail.model.MailResponse
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()Gets the response code.Gets the reject message.voidsetCode(int code) Sets the response code.voidsetMessage(String message) Sets the reject message.
-
Field Details
-
OK_CODE
public static final int OK_CODEDefault ok code- See Also:
-
OK_MESSAGE
- See Also:
-
code
protected int code -
message
-
-
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
Gets the reject message.- Returns:
-
setMessage
Sets the reject message.- Parameters:
message-
-