Package com.consol.citrus.mail.model
Class MailRequest
- java.lang.Object
-
- com.consol.citrus.mail.model.MailRequest
-
public class MailRequest extends Object
Mail message model object representing mail content with sender and recipient information. Body can be text, binary or multipart nature.- Since:
- 1.4
- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description MailRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBcc()Gets the blind copy recipient list.BodyPartgetBody()Gets the mail body content.StringgetCc()Gets the copy to recipients.StringgetFrom()Gets the sender mail address.StringgetReplyTo()Gets the reply to mail address.StringgetSubject()Gets the mail subject.StringgetTo()Gets the mail recipients.voidsetBcc(String bcc)Sets the blind copy recipient list.voidsetBody(BodyPart body)Sets the mail body content.voidsetCc(String cc)Sets the copy to recipients.voidsetFrom(String from)Sets the sender mail address.voidsetReplyTo(String replyTo)Sets the reply to mail address.voidsetSubject(String subject)Sets the mail subject.voidsetTo(String to)Sets the mail recipients.
-
-
-
Method Detail
-
getFrom
public String getFrom()
Gets the sender mail address.- Returns:
-
setFrom
public void setFrom(String from)
Sets the sender mail address.- Parameters:
from-
-
getTo
public String getTo()
Gets the mail recipients.- Returns:
-
setTo
public void setTo(String to)
Sets the mail recipients.- Parameters:
to-
-
getCc
public String getCc()
Gets the copy to recipients.- Returns:
-
setCc
public void setCc(String cc)
Sets the copy to recipients.- Parameters:
cc-
-
getBcc
public String getBcc()
Gets the blind copy recipient list.- Returns:
-
setBcc
public void setBcc(String bcc)
Sets the blind copy recipient list.- Parameters:
bcc-
-
getReplyTo
public String getReplyTo()
Gets the reply to mail address.- Returns:
-
setReplyTo
public void setReplyTo(String replyTo)
Sets the reply to mail address.- Parameters:
replyTo-
-
getSubject
public String getSubject()
Gets the mail subject.- Returns:
-
setSubject
public void setSubject(String subject)
Sets the mail subject.- Parameters:
subject-
-
getBody
public BodyPart getBody()
Gets the mail body content.- Returns:
-
setBody
public void setBody(BodyPart body)
Sets the mail body content.- Parameters:
body-
-
-