Interface ServiceDeskEmailAttachmentMatcher.Attachment

Enclosing interface:
ServiceDeskEmailAttachmentMatcher

@ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public static interface ServiceDeskEmailAttachmentMatcher.Attachment
A simple representation of a mail attachment after it has been extracted from a message.
Since:
v3.10.0
  • Method Details

    • getContentType

      String getContentType()
      The content type of the attachment.

      Will never return null, but may return "" if value can not be determined.

      Returns:
      The content type as defined in the message
    • getAttachmentContent

      A basic representation of the actual attachment content.

      This is used, rather than providing the actual byte[], in order to ensure immutability.

      Returns:
      The actual attachment content
    • getFilename

      String getFilename()
      The filename of the attachment.

      If no filename was provided in the message part, this may be a generated value.

      Will never return null, but may return "" if value can not be determined.

      Returns:
      The filename of the attachment
    • getContentId

      String getContentId()
      The content id of the attachment.

      Will never return null, but may return "" if there is cid specified for the message part, or it can not be determined.

      Returns:
      The content type as defined in the message