com.atlassian.confluence.core
Interface AttachmentResource

All Superinterfaces:
org.springframework.core.io.InputStreamSource, org.springframework.core.io.Resource
All Known Implementing Classes:
InputStreamAttachmentResource, UploadedResource, UploadedResource

public interface AttachmentResource
extends org.springframework.core.io.Resource

Represents a resource that exposes the required state to create a Confluence attachment.


Method Summary
 java.lang.String getComment()
           
 long getContentLength()
           
 java.lang.String getContentType()
           
 boolean isMinorEdit()
           
 
Methods inherited from interface org.springframework.core.io.Resource
createRelative, exists, getDescription, getFile, getFilename, getURI, getURL, isOpen, isReadable, lastModified
 
Methods inherited from interface org.springframework.core.io.InputStreamSource
getInputStream
 

Method Detail

getContentType

java.lang.String getContentType()
Returns:
the content/mime type of the attachment

getContentLength

long getContentLength()
Returns:
the content length (size of the attachment)

getComment

java.lang.String getComment()
Returns:
the comment associated with the attachment or null if there is no comment

isMinorEdit

boolean isMinorEdit()
Returns:
true if the attachment is hidden (see Attachment.isMinorEdit())


Copyright © 2003-2014 Atlassian. All Rights Reserved.