Class AttachmentEntry

java.lang.Object
com.mirth.connect.userutil.AttachmentEntry
All Implemented Interfaces:
Serializable

public class AttachmentEntry extends Object implements 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 Details

    • AttachmentEntry

      public AttachmentEntry()
      Instantiates a new AttachmentEntry with no name, content, or MIME type.
    • AttachmentEntry

      public AttachmentEntry(AttachmentEntry attachment)
      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

      public AttachmentEntry(String name, String content, String mimeType)
      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

      public String getName()
      Returns the name of the attachment entry.
      Returns:
      The name of the attachment entry.
    • setName

      public void setName(String name)
      Sets the name of the attachment entry.
      Parameters:
      name - The name of the attachment entry.
    • getContent

      public String getContent()
      Returns the content of the attachment entry.
      Returns:
      The content of the attachment entry.
    • setContent

      public void setContent(String content)
      Sets the content of the attachment entry.
      Parameters:
      content - The content of the attachment entry.
    • getMimeType

      public String getMimeType()
      Returns the MIME type of the attachment entry.
      Returns:
      The MIME type of the attachment entry.
    • setMimeType

      public void setMimeType(String mimeType)
      Sets the MIME type of the attachment entry.
      Parameters:
      mimeType - The MIME type of the attachment entry.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object