Class DefaultEmbeddedImage

    • Method Detail

      • getHeight

        public String getHeight()
        Specified by:
        getHeight in interface EmbeddedImage
        Returns:
        the height of the image either in pixels or percent. e.g. may be purely numeric, or something like nnpx or nn%
      • getSource

        public String getSource()
        Specified by:
        getSource in interface EmbeddedImage
        Returns:
        the url for the source of the image. This only applies to external embedded images so may be null if the image is a Confluence attachment.
      • isThumbnail

        public boolean isThumbnail()
        Specified by:
        isThumbnail in interface EmbeddedImage
        Returns:
        true if the image should be shown as a thumbnail.
      • getWidth

        public String getWidth()
        Specified by:
        getWidth in interface EmbeddedImage
        Returns:
        the width of the image either in pixels or percent. e.g. may be purely numeric, or something like nnpx or nn%
      • setSource

        public void setSource​(String source)
      • setAlternativeText

        public void setAlternativeText​(String alternativeText)
      • setHeight

        public void setHeight​(String height)
      • setWidth

        public void setWidth​(String width)
      • setThumbnail

        public void setThumbnail​(boolean thumbnail)
      • isBorder

        public boolean isBorder()
        Specified by:
        isBorder in interface EmbeddedImage
        Returns:
        true if the image should have a border
      • setBorder

        public void setBorder​(boolean border)
      • getAlignment

        public String getAlignment()
        Specified by:
        getAlignment in interface EmbeddedImage
        Returns:
        the value for the alignment of the image - none, center, left or right
      • setAlignment

        public void setAlignment​(String alignment)
      • getHspace

        public String getHspace()
        Specified by:
        getHspace in interface EmbeddedImage
        Returns:
        the amount of whitespace to be inserted to the left and right of the image (in pixels)
      • getVspace

        public String getVspace()
        Specified by:
        getVspace in interface EmbeddedImage
        Returns:
        the amount of whitespace to be inserted above and below the image (in pixels)
      • setHspace

        public void setHspace​(String hspace)
      • setVspace

        public void setVspace​(String vspace)
      • getExtraQueryParameters

        public String getExtraQueryParameters()
        Specified by:
        getExtraQueryParameters in interface EmbeddedImage
        Returns:
        any extra query parameters added by the client. Could potentially be used for servlet filters.
      • setExtraQueryParameters

        public void setExtraQueryParameters​(String queryParams)