Class JingleTransport

  • 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:
    JingleTransport.Ice, JingleTransport.RawUdp

    public class JingleTransport
    extends java.lang.Object
    implements org.jivesoftware.smack.packet.ExtensionElement
    A jingle transport extension.
    • Constructor Detail

      • JingleTransport

        public JingleTransport()
        Default constructor.
      • JingleTransport

        public JingleTransport​(JingleTransport.JingleTransportCandidate candidate)
        Utility constructor, with a transport candidate element.
        Parameters:
        candidate - A transport candidate element to add.
      • JingleTransport

        public JingleTransport​(JingleTransport tr)
        Copy constructor.
        Parameters:
        tr - the other jingle transport.
    • Method Detail

      • getCandidatesCount

        public int getCandidatesCount()
        Get the number of transport candidates.
        Returns:
        The number of transport candidates contained.
      • getElementName

        public java.lang.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.
      • setNamespace

        protected void setNamespace​(java.lang.String ns)
        Set the namespace.
        Parameters:
        ns - The namespace
      • getNamespace

        public java.lang.String getNamespace()
        Get the namespace.
        Specified by:
        getNamespace in interface org.jivesoftware.smack.packet.FullyQualifiedElement
        Returns:
        The namespace
      • toXML

        public java.lang.String toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
        Return the XML representation for this element.
        Specified by:
        toXML in interface org.jivesoftware.smack.packet.Element