Class JingleContentDescription
java.lang.Object
org.jivesoftware.smackx.jingleold.packet.JingleContentDescription
- All Implemented Interfaces:
Element
,ExtensionElement
,NamedElement
,XmlElement
,XmlLangElement
- Direct Known Subclasses:
JingleContentDescription.Audio
Jingle content description.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Jingle audio description.static class
A payload type, contained in a descriptor. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a list of payloads to the packet.void
Adds a audio payload type to the packet.Return the list of Payload types contained in the description.Returns the XML element name of the element.Returns an Iterator for the audio payloads in the packet.int
Returns a count of the audio payloads in the Jingle packet.Returns a list for the audio payloads in the packet.abstract String
Return the namespace.toXML
(XmlEnvironment enclosingNamespace) Convert a Jingle description to XML.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
NODENAME
- See Also:
-
-
Constructor Details
-
JingleContentDescription
public JingleContentDescription()Creates a content description..
-
-
Method Details
-
getElementName
Returns the XML element name of the element.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the XML element name of the element.
-
getNamespace
Return the namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- The namespace
-
addJinglePayloadType
Adds a audio payload type to the packet.- Parameters:
pt
- the audio payload type to add.
-
addAudioPayloadTypes
Adds a list of payloads to the packet.- Parameters:
pts
- the payloads to add.
-
getJinglePayloadTypes
Returns an Iterator for the audio payloads in the packet.- Returns:
- an Iterator for the audio payloads in the packet.
-
getJinglePayloadTypesList
Returns a list for the audio payloads in the packet.- Returns:
- a list for the audio payloads in the packet.
-
getAudioPayloadTypesList
Return the list of Payload types contained in the description.- Returns:
- a list of PayloadType.Audio
-
getJinglePayloadTypesCount
Returns a count of the audio payloads in the Jingle packet.- Returns:
- the number of audio payloads in the Jingle packet.
-
toXML
Convert a Jingle description to XML.
-