Package com.mirth.connect.userutil
Class AttachmentEntry
java.lang.Object
com.mirth.connect.userutil.AttachmentEntry
- All Implemented Interfaces:
Serializable
Used to store and retrieve details about message attachments such as the name, contents, and
MIME type. When using a variable to specify attachments, such as in an SMTP Sender or
Web Service Sender, the variable must reference a list of AttachmentEntry objects.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new AttachmentEntry with no name, content, or MIME type.AttachmentEntry(AttachmentEntry attachment) Instantiates a new AttachmentEntry that copies the name, content, and MIME type from a given AttachmentEntry object.AttachmentEntry(String name, String content, String mimeType) Instantiates a new AttachmentEntry with a name, content, and a MIME type. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the content of the attachment entry.Returns the MIME type of the attachment entry.getName()Returns the name of the attachment entry.voidsetContent(String content) Sets the content of the attachment entry.voidsetMimeType(String mimeType) Sets the MIME type of the attachment entry.voidSets the name of the attachment entry.
-
Constructor Details
-
AttachmentEntry
public AttachmentEntry()Instantiates a new AttachmentEntry with no name, content, or MIME type. -
AttachmentEntry
Instantiates a new AttachmentEntry that copies the name, content, and MIME type from a given AttachmentEntry object.- Parameters:
attachment- The AttachmentEntry object to copy.
-
AttachmentEntry
Instantiates a new AttachmentEntry with a name, content, and a MIME type.- Parameters:
name- The name of the attachment entry.content- The content to store for the attachment entry.mimeType- The MIME type of the attachment entry.
-
-
Method Details
-
getName
Returns the name of the attachment entry.- Returns:
- The name of the attachment entry.
-
setName
Sets the name of the attachment entry.- Parameters:
name- The name of the attachment entry.
-
getContent
Returns the content of the attachment entry.- Returns:
- The content of the attachment entry.
-
setContent
Sets the content of the attachment entry.- Parameters:
content- The content of the attachment entry.
-
getMimeType
Returns the MIME type of the attachment entry.- Returns:
- The MIME type of the attachment entry.
-
setMimeType
Sets the MIME type of the attachment entry.- Parameters:
mimeType- The MIME type of the attachment entry.
-
equals
-