Class AvatarMetadata.Info
- java.lang.Object
-
- rocks.xmpp.extensions.avatar.model.metadata.AvatarMetadata.Info
-
- Enclosing class:
- AvatarMetadata
public static final class AvatarMetadata.Info extends Object
The implementation of the<info/>element in theurn:xmpp:avatar:metadatanamespace.This class is immutable.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetBytes()Gets the size of the image data in bytes.IntegergetHeight()Gets the height of the image in pixels.StringgetId()Gets a hash of the image data for the specified content-type, where the hash is produced in accordance with the SHA-1 algorithm as specified in RFC 3174 [11] (with binary output).StringgetType()Gets the IANA-registered content type of the image data.URLgetUrl()Gets the http: or https: URL at which the image data file is hosted; this attribute MUST NOT be included unless the image data file can be retrieved via HTTP.IntegergetWidth()Gets the width of the image in pixels.
-
-
-
Method Detail
-
getBytes
public final long getBytes()
Gets the size of the image data in bytes.- Returns:
- The bytes.
-
getId
public final String getId()
Gets a hash of the image data for the specified content-type, where the hash is produced in accordance with the SHA-1 algorithm as specified in RFC 3174 [11] (with binary output).- Returns:
- The id.
-
getType
public final String getType()
Gets the IANA-registered content type of the image data.- Returns:
- The type.
-
getUrl
public final URL getUrl()
Gets the http: or https: URL at which the image data file is hosted; this attribute MUST NOT be included unless the image data file can be retrieved via HTTP.- Returns:
- The URL.
-
getWidth
public final Integer getWidth()
Gets the width of the image in pixels.- Returns:
- The width.
-
getHeight
public final Integer getHeight()
Gets the height of the image in pixels.- Returns:
- The height.
-
-