|
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.Objectorg.jivesoftware.smack.packet.Packet
org.jivesoftware.smack.packet.IQ
net.java.sip.communicator.impl.protocol.jabber.extensions.thumbnail.ThumbnailIQ
public class ThumbnailIQ
The ThumbnailIQ is an IQ packet that is meant to be used for thumbnail requests and responses.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ |
|---|
org.jivesoftware.smack.packet.IQ.Type |
| Field Summary | |
|---|---|
static String |
CID
The name of the thumbnail attribute "cid". |
static String |
ELEMENT_NAME
The name of the "data" element. |
static String |
NAMESPACE
The names XMPP space that the thumbnail elements belong to. |
static String |
TYPE
The name of the thumbnail attribute "mime-type". |
| Fields inherited from class org.jivesoftware.smack.packet.Packet |
|---|
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE |
| Constructor Summary | |
|---|---|
ThumbnailIQ()
An empty constructor used to initialize this class as an IQProvier. |
|
ThumbnailIQ(String from,
String to,
String cid,
org.jivesoftware.smack.packet.IQ.Type type)
Creates a ThumbnailIQ packet, by specifying the source, the destination, the content-ID and the type of this packet. |
|
ThumbnailIQ(String from,
String to,
String cid,
String mimeType,
byte[] data,
org.jivesoftware.smack.packet.IQ.Type type)
Creates a ThumbnailIQ packet, by specifying the source, the destination, the content-ID, the type of data and the data of the thumbnail. |
|
| Method Summary | |
|---|---|
String |
getChildElementXML()
Returns the xml representing the data element in this IQ packet. |
String |
getCid()
Returns the content-ID of this thumbnail packet. |
byte[] |
getData()
Returns the data of the thumbnail. |
org.jivesoftware.smack.packet.IQ |
parseIQ(org.xmlpull.v1.XmlPullParser parser)
Parses the given XmlPullParser into a ThumbnailIQ packet and returns it. |
| Methods inherited from class org.jivesoftware.smack.packet.IQ |
|---|
createErrorResponse, createResultIQ, getType, setType, toXML |
| Methods inherited from class org.jivesoftware.smack.packet.Packet |
|---|
addExtension, deleteProperty, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setProperty, setTo |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NAMESPACE
public static final String ELEMENT_NAME
public static final String CID
public static final String TYPE
| Constructor Detail |
|---|
public ThumbnailIQ()
public ThumbnailIQ(String from,
String to,
String cid,
org.jivesoftware.smack.packet.IQ.Type type)
from - the source of the packetto - the destination of the packetcid - the content-ID used to identify this packet in the destinationtype - the of the packet, which could be one of the types defined
in IQ.Type
public ThumbnailIQ(String from,
String to,
String cid,
String mimeType,
byte[] data,
org.jivesoftware.smack.packet.IQ.Type type)
from - the source of the packetto - the destination of the packetcid - the content-ID used to identify this packet in the destinationmimeType - the type of the data passeddata - the data of the thumbnailtype - the of the packet, which could be one of the types defined
in IQ.Type| Method Detail |
|---|
public org.jivesoftware.smack.packet.IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
throws Exception
parseIQ in interface org.jivesoftware.smack.provider.IQProviderExceptionIQProvider.parseIQ(XmlPullParser)public String getChildElementXML()
getChildElementXML in class org.jivesoftware.smack.packet.IQpublic String getCid()
public byte[] getData()
|
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 | |||||||||