Class JingleDescription

    • Constructor Detail

    • Method Detail

      • getElementName

        public java.lang.String getElementName()
        Returns the XML element name of the element.
        Specified by:
        getElementName in interface NamedElement
        Returns:
        the XML element name of the element.
      • 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​(java.util.List<PayloadType> pts)
        Adds a list of payloads to the packet.
        Parameters:
        pts - the payloads to add.
      • getPayloadTypes

        public java.util.Iterator<PayloadTypegetPayloadTypes()
        Returns an Iterator for the audio payloads in the packet.
        Returns:
        an Iterator for the audio payloads in the packet.
      • getPayloadTypesList

        public java.util.List<PayloadTypegetPayloadTypesList()
        Returns a list for the audio payloads in the packet.
        Returns:
        a list for the audio payloads in the packet.
      • getAudioPayloadTypesList

        public java.util.List<PayloadTypegetAudioPayloadTypesList()
        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 java.lang.String toXML​(XmlEnvironment enclosingNamespace)
        Convert a Jingle description to XML.
        Specified by:
        toXML in interface Element
        Returns:
        a string with the XML representation