Class JingleDescription
java.lang.Object
org.jivesoftware.smackx.jingleold.packet.JingleDescription
- All Implemented Interfaces:
Element
,ExtensionElement
,NamedElement
,XmlElement
,XmlLangElement
- Direct Known Subclasses:
JingleDescription.Audio
Jingle content description.
-
Nested Class Summary
-
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.abstract String
Return the namespace.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.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
-
JingleDescription
public JingleDescription()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
-
addPayloadType
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.
-
getPayloadTypes
Returns an Iterator for the audio payloads in the packet.- Returns:
- an Iterator for the audio payloads in the packet.
-
getPayloadTypesList
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
-
getPayloadTypesCount
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.
-