|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.jabber.extensions.thumbnail.ThumbnailElement
public class ThumbnailElement
The ThumbnailElement represents a "thumbnail" XML element, that is contained in the file element, we're sending to notify for a file transfer. The ThumbnailElement's role is to advertise a thumbnail.
| Field Summary | |
|---|---|
static String |
CID
The name of the thumbnail attribute "cid". |
static String |
ELEMENT_NAME
The name of the XML element used for transport of thumbnail parameters. |
static String |
HEIGHT
The name of the thumbnail attribute "height". |
static String |
MIME_TYPE
The name of the thumbnail attribute "mime-type". |
static String |
NAMESPACE
The names XMPP space that the thumbnail elements belong to. |
static String |
WIDTH
The name of the thumbnail attribute "width". |
| Constructor Summary | |
|---|---|
ThumbnailElement(String xml)
Creates a ThumbnailElement by parsing the given xml. |
|
ThumbnailElement(String serverAddress,
byte[] thumbnailData,
String mimeType,
int width,
int height)
Creates a ThumbnailPacketExtension by specifying all extension attributes. |
|
| Method Summary | |
|---|---|
String |
getCid()
Returns the Content-ID, corresponding to this ThumbnailElement. |
int |
getHeight()
Returns the height of this ThumbnailElement. |
String |
getMimeType()
Returns the mime type of this ThumbnailElement. |
int |
getWidth()
Returns the width of this ThumbnailElement. |
void |
setCid(String cid)
Sets the content-ID of this ThumbnailElement. |
void |
setHeight(int height)
Sets the height of the thumbnail |
void |
setMimeType(String mimeType)
Sets the mime type of the thumbnail. |
void |
setWidth(int width)
Sets the width of the thumbnail |
String |
toXML()
Returns the XML representation of this PacketExtension. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ELEMENT_NAME
public static final String NAMESPACE
public static final String CID
public static final String MIME_TYPE
public static final String WIDTH
public static final String HEIGHT
| Constructor Detail |
|---|
public ThumbnailElement(String serverAddress,
byte[] thumbnailData,
String mimeType,
int width,
int height)
serverAddress - the Jabber address of the destination contactthumbnailData - the byte array containing the thumbnail datamimeType - the mime type attributewidth - the width of the thumbnailheight - the height of the thumbnailpublic ThumbnailElement(String xml)
xml - the XML from which we obtain the needed information to create
this ThumbnailElement| Method Detail |
|---|
public String toXML()
public String getCid()
public String getMimeType()
public int getWidth()
public int getHeight()
public void setCid(String cid)
cid - the content-ID to setpublic void setMimeType(String mimeType)
mimeType - the mime type of the thumbnailpublic void setWidth(int width)
width - the width of the thumbnailpublic void setHeight(int height)
height - the height of the thumbnail
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||