Class JingleContent

java.lang.Object
org.jivesoftware.smackx.jingleold.packet.JingleContent
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

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

  • Constructor Details

    • JingleContent

      public JingleContent(String creator, String name)
      Creates a content description.
      Parameters:
      creator - the creator.
      name - the name.
  • Method Details

    • getCreator

      public String getCreator()
    • getName

      public String getName()
    • 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 String getNamespace()
      Return the namespace.
      Specified by:
      getNamespace in interface org.jivesoftware.smack.packet.XmlElement
      Returns:
      The namespace
    • setDescription

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

      public JingleDescription getDescription()
      Gets the description for this Jingle content.
      Returns:
      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(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 Iterator<JingleTransport> getJingleTransports()
      Returns an Iterator for the JingleTransports in the packet.
      Returns:
      an Iterator for the JingleTransports in the packet.
    • getJingleTransportsList

      public List<JingleTransport> getJingleTransportsList()
      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 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