Class FileAttachment

java.lang.Object
davmail.exchange.ews.FileAttachment

public class FileAttachment extends Object
File Attachment.
  • Field Details

    • name

      protected String name
    • contentType

      protected String contentType
    • content

      protected String content
    • attachmentId

      protected String attachmentId
    • isContactPhoto

      protected boolean isContactPhoto
  • Constructor Details

    • FileAttachment

      public FileAttachment()
      Default constructor
    • FileAttachment

      public FileAttachment(String name, String contentType, String content)
      Build file attachment.
      Parameters:
      name - attachment name
      contentType - content type
      content - body as string
  • Method Details

    • write

      public void write(Writer writer) throws IOException
      Write XML content to writer.
      Parameters:
      writer - writer
      Throws:
      IOException - on error
    • setIsContactPhoto

      public void setIsContactPhoto(boolean isContactPhoto)
      Exchange 2010 only: set contact photo flag on attachment.
      Parameters:
      isContactPhoto - contact photo flag