Class JingleContent

    • Constructor Detail

      • JingleContent

        public JingleContent​(java.lang.String creator,
                             java.lang.String name)
        Creates a content description.
        Parameters:
        creator - the creator.
        name - the name.
    • Method Detail

      • getCreator

        public java.lang.String getCreator()
      • getName

        public java.lang.String getName()
      • 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.
      • setDescription

        public void setDescription​(JingleDescription description)
        Sets the description for this Jingle content.
        Parameters:
        description - TODO javadoc me please The description
      • addJingleTransport

        public void addJingleTransport​(JingleTransport transport)
        Adds a JingleTransport type to the packet.
        Parameters:
        transport - TODO javadoc me please the JingleTransport to add.
      • addTransports

        public void addTransports​(java.util.List<JingleTransport> transports)
        Adds a list of transports to add to the packet.
        Parameters:
        transports - TODO javadoc me please the transports to add.
      • getJingleTransports

        public java.util.Iterator<JingleTransportgetJingleTransports()
        Returns an Iterator for the JingleTransports in the packet.
        Returns:
        an Iterator for the JingleTransports in the packet.
      • getJingleTransportsList

        public java.util.List<JingleTransportgetJingleTransportsList()
        Returns a list for the JingleTransports in the packet.
        Returns:
        a list for the JingleTransports in the packet.
      • getJingleTransportsCount

        public int getJingleTransportsCount()
        Returns a count of the JingleTransports in the Jingle packet.
        Returns:
        the number of the JingleTransports 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