Class Thumbnail

    • Constructor Detail

      • Thumbnail

        public Thumbnail​(URI uri)
        Creates a thumbnail.
        Parameters:
        uri - A URI where the thumbnail data can be accessed (typically by using a URI scheme of 'cid:', 'https:', or 'http:'). If the URI scheme is 'cid:' then the identifier MUST refer to a bit of binary data as described in Bits of Binary (XEP-0231).
      • Thumbnail

        public Thumbnail​(URI uri,
                         String mediaType,
                         Integer width,
                         Integer height)
        Creates a thumbnail.
        Parameters:
        uri - A URI where the thumbnail data can be accessed (typically by using a URI scheme of 'cid:', 'https:', or 'http:'). If the URI scheme is 'cid:' then the identifier MUST refer to a bit of binary data as described in Bits of Binary (XEP-0231).
        mediaType - The value of the 'media-type' attribute MUST match the syntax specified in RFC 2045 [3]. That is, the value MUST include a top-level media type, the "/" character, and a subtype; in addition, it MAY include one or more optional parameters.
        width - The intended display width of the thumbnail image. Used as a hint for the receiving client to prepare the appropriate UI, such as a dialog window.
        height - The intended display height of the thumbnail image. Used as a hint for the receiving client to prepare the appropriate UI, such as a dialog window.
    • Method Detail

      • getUri

        public final URI getUri()
        A URI where the thumbnail data can be accessed (typically by using a URI scheme of 'cid:', 'https:', or 'http:'). If the URI scheme is 'cid:' then the identifier MUST refer to a bit of binary data as described in Bits of Binary (XEP-0231).
        Returns:
        The URI.
        See Also:
        Bits of Binary (XEP-0231)
      • getMediaType

        public final String getMediaType()
        The value of the 'media-type' attribute MUST match the syntax specified in RFC 2045 [3]. That is, the value MUST include a top-level media type, the "/" character, and a subtype; in addition, it MAY include one or more optional parameters.
        Returns:
        The media type.
      • getWidth

        public final Integer getWidth()
        The intended display width of the thumbnail image. Used as a hint for the receiving client to prepare the appropriate UI, such as a dialog window.
        Returns:
        The width.
      • getHeight

        public final Integer getHeight()
        The intended display height of the thumbnail image. Used as a hint for the receiving client to prepare the appropriate UI, such as a dialog window.
        Returns:
        The height.