Class Attachment

  • Direct Known Subclasses:
    MutableAttachment

    public class Attachment
    extends Page

    Attachment class

    Represents a Confluence Attachment

    Author:
    Antonio David Perez Morales <adperezmorales@gmail.com>
    • Field Detail

      • downloadUrl

        protected java.lang.String downloadUrl
      • contentStream

        protected java.io.InputStream contentStream
    • Constructor Detail

      • Attachment

        public Attachment()
    • Method Detail

      • getDownloadUrl

        public java.lang.String getDownloadUrl()
      • hasContent

        public boolean hasContent()
        Overrides:
        hasContent in class Page
      • hasContentStream

        public java.lang.Boolean hasContentStream()
      • getContentStream

        public java.io.InputStream getContentStream()
        Overrides:
        getContentStream in class Page
      • refineMetadata

        protected void refineMetadata​(java.util.Map<java.lang.String,​java.lang.Object> metadata)
        Description copied from class: Page

        Used to be overwritten by child classes to add more metadata to the map

        Overrides:
        refineMetadata in class Page