Package com.atlassian.confluence.core
Interface AttachmentResource
- 
- All Superinterfaces:
- org.springframework.core.io.InputStreamSource,- org.springframework.core.io.Resource
 - All Known Implementing Classes:
- InputStreamAttachmentResource,- UploadedResource
 
 public interface AttachmentResource extends org.springframework.core.io.ResourceRepresents a resource that exposes the required state to create a Confluence attachment.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description StringgetComment()longgetContentLength()Deprecated.since 5.10.StringgetContentType()booleanisHidden()booleanisMinorEdit()
 
- 
- 
- 
Method Detail- 
getContentTypeString getContentType() - Returns:
- the content/mime type of the attachment
 
 - 
getContentLength@Deprecated long getContentLength() Deprecated.since 5.10. UseResource.contentLength()instead.- Returns:
- the content length (size of the attachment)
 
 - 
getCommentString getComment() - Returns:
- the comment associated with the attachment or null if there is no comment
 
 - 
isMinorEditboolean isMinorEdit() - Returns:
- true if the attachment is a minor edit (see Attachment.isMinorEdit())
 
 - 
isHiddenboolean isHidden() - Returns:
- true if the attachment is hidden (see Attachment.isHidden())
 
 
- 
 
-