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
Nested ClassesModifier and TypeClassDescriptionstatic classJingle audio description.static classA payload type, contained in a descriptor. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a list of payloads to the packet.voidAdds 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.intReturns a count of the audio payloads in the Jingle packet.Returns a list for the audio payloads in the packet.abstract StringReturn 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, waitMethods 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:
getElementNamein interfaceNamedElement- Returns:
- the XML element name of the element.
-
getNamespace
Return the namespace.- Specified by:
getNamespacein 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.
-