Class AttachmentUpload

java.lang.Object
com.atlassian.confluence.api.model.content.AttachmentUpload

public class AttachmentUpload extends Object
Represents a single attachment being uploaded.
  • Constructor Details

    • AttachmentUpload

      public AttachmentUpload(File file, String name, String mediaType, String comment, boolean minorEdit)
    • AttachmentUpload

      public AttachmentUpload(File file, String name, String mediaType, String comment, boolean minorEdit, boolean hidden)
  • Method Details

    • withName

      public AttachmentUpload withName(String newName)
      Create a new AttachmentUpload object from this one, changing the logical filename but keeping other fields.
      Parameters:
      newName - the new logical filename (i.e. the value for getName() on the new object)
      Returns:
      new AttachmentUpload with new filename but other fields copied from this object.
    • getComment

      public String getComment()
    • getMediaType

      public String getMediaType()
    • getFile

      public File getFile()
    • getName

      public String getName()
    • isMinorEdit

      public boolean isMinorEdit()
    • isHidden

      public boolean isHidden()
    • toString

      public String toString()
      Overrides:
      toString in class Object