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.Resource
Represents a resource that exposes the required state to create a Confluence attachment.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    long
    Deprecated.
    since 5.10.
     
    boolean
     
    boolean
     

    Methods inherited from interface org.springframework.core.io.InputStreamSource

    getInputStream

    Methods inherited from interface org.springframework.core.io.Resource

    contentLength, createRelative, exists, getDescription, getFile, getFilename, getURI, getURL, isFile, isOpen, isReadable, lastModified, readableChannel
  • Method Details

    • getContentType

      String getContentType()
      Returns:
      the content/mime type of the attachment
    • getContentLength

      @Deprecated long getContentLength()
      Deprecated.
      since 5.10. Use Resource.contentLength() instead.
      Returns:
      the content length (size of the attachment)
    • getComment

      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 a minor edit (see Attachment.isMinorEdit())
    • isHidden

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