|
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.jingle.JingleIQ
public class JingleIQ
A straightforward extension of the IQ. A JingleIQ object is created
by smack via the JingleIQProvider. It contains all the information
extracted from a jingle IQ.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ |
|---|
org.jivesoftware.smack.packet.IQ.Type |
| Field Summary | |
|---|---|
static String |
ACTION_ATTR_NAME
The name of the argument that contains the jingle action value. |
static String |
ELEMENT_NAME
The name of the element that contains the jingle data. |
static String |
INITIATOR_ATTR_NAME
The name of the argument that contains the "initiator" jid. |
static String |
NAMESPACE
The name space that jingle belongs to. |
static String |
RESPONDER_ATTR_NAME
The name of the argument that contains the "responder" jid. |
static String |
SID_ATTR_NAME
The name of the argument that contains the session id. |
| Fields inherited from class org.jivesoftware.smack.packet.Packet |
|---|
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE |
| Constructor Summary | |
|---|---|
JingleIQ()
|
|
| Method Summary | |
|---|---|
void |
addContent(ContentPacketExtension contentPacket)
Adds contentPacket to this IQ's content list. |
boolean |
containsContentChildOfType(Class<? extends org.jivesoftware.smack.packet.PacketExtension> contentType)
Determines if this packet contains a content with a child matching the specified contentType. |
static String |
generateSID()
Generates a random String usable as a jingle session ID. |
JingleAction |
getAction()
Returns the value of this element's action attribute. |
String |
getChildElementXML()
Returns the XML string of this Jingle IQ's "section" sub-element. |
ContentPacketExtension |
getContentForType(Class<? extends org.jivesoftware.smack.packet.PacketExtension> contentType)
Determines if this packet contains a content with a child matching the specified contentType and returns it. |
List<ContentPacketExtension> |
getContentList()
Returns a reference (and not a copy so be careful how you are handling it) of this element's content list. |
String |
getInitiator()
Returns the full JID of the entity that has initiated the session flow. |
ReasonPacketExtension |
getReason()
Returns this IQ's reason extension. |
String |
getResponder()
Returns the full JID of the entity that replies to a Jingle initiation. |
SessionInfoPacketExtension |
getSessionInfo()
Returns a SessionInfoPacketExtension if this JingleIQ
contains one and null otherwise. |
String |
getSID()
Returns this element's session ID value. |
void |
setAction(JingleAction action)
Sets the value of this element's action attribute. |
void |
setInitiator(String initiator)
Sets the full JID of the entity that has initiated the session flow. |
void |
setReason(ReasonPacketExtension reason)
Specifies this IQ's reason extension. |
void |
setResponder(String responder)
Sets the full JID of the entity that replies to a Jingle initiation. |
void |
setSessionInfo(SessionInfoPacketExtension si)
Sets si as the session info extension for this packet. |
void |
setSID(String sid)
Sets this element's session ID value. |
| 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 ACTION_ATTR_NAME
public static final String INITIATOR_ATTR_NAME
public static final String RESPONDER_ATTR_NAME
public static final String SID_ATTR_NAME
| Constructor Detail |
|---|
public JingleIQ()
| Method Detail |
|---|
public String getChildElementXML()
getChildElementXML in class org.jivesoftware.smack.packet.IQpublic void setSID(String sid)
sid - the session ID to setpublic String getSID()
public static String generateSID()
public void setResponder(String responder)
responder - the full JID of the session responder.public String getResponder()
public void setInitiator(String initiator)
initiator - the full JID of the initiator.public String getInitiator()
public void setAction(JingleAction action)
action - the value of the action attribute.public JingleAction getAction()
public void setReason(ReasonPacketExtension reason)
reason - this IQ's reason extension.public ReasonPacketExtension getReason()
public List<ContentPacketExtension> getContentList()
public void addContent(ContentPacketExtension contentPacket)
contentPacket - the content packet extension we'd like to add to
this element's content list.public boolean containsContentChildOfType(Class<? extends org.jivesoftware.smack.packet.PacketExtension> contentType)
RtpDescriptionPacketExtension.
contentType - the type of the content child we are looking for.
public ContentPacketExtension getContentForType(Class<? extends org.jivesoftware.smack.packet.PacketExtension> contentType)
contentType - the type of the content child we are looking for.
public void setSessionInfo(SessionInfoPacketExtension si)
si - a SessionInfoPacketExtension that we'd like to add
here.public SessionInfoPacketExtension getSessionInfo()
SessionInfoPacketExtension if this JingleIQ
contains one and null otherwise.
SessionInfoPacketExtension if this JingleIQ
contains one and null otherwise.
|
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 | |||||||||