com.atlassian.confluence.api.model.content
Class AttachmentUpload

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

@ExperimentalApi
public class AttachmentUpload
extends Object

Represents a single attachment being uploaded.


Constructor Summary
AttachmentUpload(File file, String name, String mediaType, String comment, boolean minorEdit)
           
 
Method Summary
 String getComment()
           
 File getFile()
           
 String getMediaType()
           
 String getName()
           
 boolean isMinorEdit()
           
 String toString()
           
 AttachmentUpload withName(String newName)
          Create a new AttachmentUpload object from this one, changing the logical filename but keeping other fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttachmentUpload

public AttachmentUpload(File file,
                        String name,
                        String mediaType,
                        String comment,
                        boolean minorEdit)
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()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003–2015 Atlassian. All rights reserved.