Class JingleContentDescription
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.packet.JingleContentDescription
-
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element
,org.jivesoftware.smack.packet.ExtensionElement
,org.jivesoftware.smack.packet.FullyQualifiedElement
,org.jivesoftware.smack.packet.NamedElement
,org.jivesoftware.smack.packet.XmlLangElement
- Direct Known Subclasses:
JingleContentDescription.Audio
public abstract class JingleContentDescription extends java.lang.Object implements org.jivesoftware.smack.packet.ExtensionElement
Jingle content description.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JingleContentDescription.Audio
Jingle audio description.static class
JingleContentDescription.JinglePayloadType
A payload type, contained in a descriptor.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NODENAME
-
Constructor Summary
Constructors Constructor Description JingleContentDescription()
Creates a content description..
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addAudioPayloadTypes(java.util.List<PayloadType.Audio> pts)
Adds a list of payloads to the packet.void
addJinglePayloadType(JingleContentDescription.JinglePayloadType pt)
Adds a audio payload type to the packet.java.util.ArrayList<PayloadType.Audio>
getAudioPayloadTypesList()
Return the list of Payload types contained in the description.java.lang.String
getElementName()
Returns the XML element name of the element.java.util.Iterator<JingleContentDescription.JinglePayloadType>
getJinglePayloadTypes()
Returns an Iterator for the audio payloads in the packet.int
getJinglePayloadTypesCount()
Returns a count of the audio payloads in the Jingle packet.java.util.ArrayList<JingleContentDescription.JinglePayloadType>
getJinglePayloadTypesList()
Returns a list for the audio payloads in the packet.abstract java.lang.String
getNamespace()
Return the namespace.java.lang.String
toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
Convert a Jingle description to XML.
-
-
-
Field Detail
-
NODENAME
public static final java.lang.String NODENAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getElementName
public java.lang.String getElementName()
Returns the XML element name of the element.- Specified by:
getElementName
in interfaceorg.jivesoftware.smack.packet.NamedElement
- Returns:
- the XML element name of the element.
-
getNamespace
public abstract java.lang.String getNamespace()
Return the namespace.- Specified by:
getNamespace
in interfaceorg.jivesoftware.smack.packet.FullyQualifiedElement
- Returns:
- The namespace
-
addJinglePayloadType
public void addJinglePayloadType(JingleContentDescription.JinglePayloadType pt)
Adds a audio payload type to the packet.- Parameters:
pt
- the audio payload type to add.
-
addAudioPayloadTypes
public void addAudioPayloadTypes(java.util.List<PayloadType.Audio> pts)
Adds a list of payloads to the packet.- Parameters:
pts
- the payloads to add.
-
getJinglePayloadTypes
public java.util.Iterator<JingleContentDescription.JinglePayloadType> getJinglePayloadTypes()
Returns an Iterator for the audio payloads in the packet.- Returns:
- an Iterator for the audio payloads in the packet.
-
getJinglePayloadTypesList
public java.util.ArrayList<JingleContentDescription.JinglePayloadType> getJinglePayloadTypesList()
Returns a list for the audio payloads in the packet.- Returns:
- a list for the audio payloads in the packet.
-
getAudioPayloadTypesList
public java.util.ArrayList<PayloadType.Audio> getAudioPayloadTypesList()
Return the list of Payload types contained in the description.- Returns:
- a list of PayloadType.Audio
-
getJinglePayloadTypesCount
public int getJinglePayloadTypesCount()
Returns a count of the audio payloads in the Jingle packet.- Returns:
- the number of audio payloads in the Jingle packet.
-
toXML
public java.lang.String toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
Convert a Jingle description to XML.- Specified by:
toXML
in interfaceorg.jivesoftware.smack.packet.Element
- Returns:
- a string with the XML representation
-
-