public final class Thumbnail
extends java.lang.Object
The implementation of the <thumbnail/>
element in the urn:xmpp:thumbs:1"
namespace.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAMESPACE
urn:xmpp:thumbs:1
|
Constructor and Description |
---|
Thumbnail(java.net.URI uri)
Creates a thumbnail.
|
Thumbnail(java.net.URI uri,
java.lang.String mediaType,
java.lang.Integer width,
java.lang.Integer height)
Creates a thumbnail.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getHeight()
The intended display height of the thumbnail image.
|
java.lang.String |
getMediaType()
The value of the ‘media-type’ attribute MUST match the syntax specified in RFC 2045 [3].
|
java.net.URI |
getUri()
A URI where the thumbnail data can be accessed (typically by using a URI scheme of ‘cid:’, ‘https:’, or ‘http:’).
|
java.lang.Integer |
getWidth()
The intended display width of the thumbnail image.
|
java.lang.String |
toString() |
public static final java.lang.String NAMESPACE
urn:xmpp:thumbs:1
public Thumbnail(java.net.URI uri)
Creates a thumbnail.
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).public Thumbnail(java.net.URI uri, java.lang.String mediaType, java.lang.Integer width, java.lang.Integer height)
Creates a thumbnail.
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.public final java.net.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).
public final java.lang.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.
public final java.lang.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.
public final java.lang.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.
public final java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014–2019 XMPP.rocks. All rights reserved.