Class AttachmentUpload


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

      • 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 Detail

      • 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()