Package org.citrusframework.mail.model
Class AttachmentPart
java.lang.Object
org.citrusframework.mail.model.BodyPart
org.citrusframework.mail.model.AttachmentPart
Attachment part adds file name.
- Since:
- 1.4
- Author:
- Christoph Deppisch
-
Nested Class Summary
Nested classes/interfaces inherited from class org.citrusframework.mail.model.BodyPart
BodyPart.Attachments -
Field Summary
FieldsFields inherited from class org.citrusframework.mail.model.BodyPart
attachments, content, contentType -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.AttachmentPart(String content, String contentType, String fileName) Default constructor using fields. -
Method Summary
Modifier and TypeMethodDescriptionGets the file name.voidsetFileName(String fileName) Sets the file name.Methods inherited from class org.citrusframework.mail.model.BodyPart
addPart, getAttachments, getContent, getContentType, hasAttachments, setAttachments, setContent, setContentType
-
Field Details
-
fileName
-
-
Constructor Details
-
AttachmentPart
public AttachmentPart()Default constructor. -
AttachmentPart
Default constructor using fields.- Parameters:
content-contentType-
-
-
Method Details
-
getFileName
Gets the file name.- Returns:
-
setFileName
Sets the file name.- Parameters:
fileName-
-