Class JingleDescription

java.lang.Object
org.jivesoftware.smackx.jingleold.packet.JingleDescription
All Implemented Interfaces:
org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.ExtensionElement, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlElement, org.jivesoftware.smack.packet.XmlLangElement
Direct Known Subclasses:
JingleDescription.Audio

public abstract class JingleDescription extends Object implements org.jivesoftware.smack.packet.ExtensionElement
Jingle content description.
  • Field Details

  • Constructor Details

    • JingleDescription

      public JingleDescription()
      Creates a content description..
  • Method Details

    • getElementName

      public String getElementName()
      Returns the XML element name of the element.
      Specified by:
      getElementName in interface org.jivesoftware.smack.packet.NamedElement
      Returns:
      the XML element name of the element.
    • getNamespace

      public abstract String getNamespace()
      Return the namespace.
      Specified by:
      getNamespace in interface org.jivesoftware.smack.packet.XmlElement
      Returns:
      The namespace
    • addPayloadType

      public void addPayloadType(PayloadType pt)
      Adds a audio payload type to the packet.
      Parameters:
      pt - the audio payload type to add.
    • addAudioPayloadTypes

      public void addAudioPayloadTypes(List<PayloadType> pts)
      Adds a list of payloads to the packet.
      Parameters:
      pts - the payloads to add.
    • getPayloadTypes

      public Iterator<PayloadType> getPayloadTypes()
      Returns an Iterator for the audio payloads in the packet.
      Returns:
      an Iterator for the audio payloads in the packet.
    • getPayloadTypesList

      public List<PayloadType> getPayloadTypesList()
      Returns a list for the audio payloads in the packet.
      Returns:
      a list for the audio payloads in the packet.
    • getAudioPayloadTypesList

      public List<PayloadType> getAudioPayloadTypesList()
      Return the list of Payload types contained in the description.
      Returns:
      a list of PayloadType.Audio
    • getPayloadTypesCount

      public int getPayloadTypesCount()
      Returns a count of the audio payloads in the Jingle packet.
      Returns:
      the number of audio payloads in the Jingle packet.
    • toXML

      public String toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
      Convert a Jingle description to XML.
      Specified by:
      toXML in interface org.jivesoftware.smack.packet.Element
      Returns:
      a string with the XML representation