Package com.priint.pubserverapi.mail
Class Attachment
java.lang.Object
com.priint.pubserverapi.mail.Attachment
Represents an email attachment, including metadata such as MIME type,
display name, and whether it should be rendered inline.
-
Constructor Summary
ConstructorsConstructorDescriptionAttachment(Path path, AttachmentMimeType mimeType) Constructs an attachment with default file name and inline flag.Attachment(Path path, AttachmentMimeType mimeType, boolean inline) Constructs a fully configured attachment. -
Method Summary
-
Constructor Details
-
Attachment
Constructs an attachment with default file name and inline flag.- Parameters:
path- the file to attach.mimeType- the MIME type of the attachment.
-
Attachment
Constructs a fully configured attachment.- Parameters:
path- the file to attach.mimeType- the MIME type of the attachment.inline-trueif the attachment should be displayed inline;falseotherwise.
-
-
Method Details
-
getPath
Returns the attached path to file.- Returns:
- the path.
-
getMimeType
Returns the MIME type of the attachment.- Returns:
- the MIME type.
-
isInline
public boolean isInline()Indicates whether the attachment should be rendered inline in the email.- Returns:
trueif inline,falseotherwise.
-