Class StreamInitiation.Feature

  • 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
    Enclosing class:
    StreamInitiation

    public static class StreamInitiation.Feature
    extends java.lang.Object
    implements org.jivesoftware.smack.packet.ExtensionElement
    The feature negotiation portion of the StreamInitiation packet.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static javax.xml.namespace.QName QNAME  
    • Constructor Summary

      Constructors 
      Constructor Description
      Feature​(DataForm data)
      The dataform can be provided as part of the constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DataForm getData()
      Returns the dataform associated with the feature negotiation.
      java.lang.String getElementName()  
      java.lang.String getNamespace()  
      java.lang.String toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.jivesoftware.smack.packet.Element

        toXML, toXML
      • Methods inherited from interface org.jivesoftware.smack.packet.XmlElement

        getLanguage, getQName
    • Field Detail

      • QNAME

        public static final javax.xml.namespace.QName QNAME
    • Constructor Detail

      • Feature

        public Feature​(DataForm data)
        The dataform can be provided as part of the constructor.
        Parameters:
        data - The dataform.
    • Method Detail

      • getData

        public DataForm getData()
        Returns the dataform associated with the feature negotiation.
        Returns:
        Returns the dataform associated with the feature negotiation.
      • getElementName

        public java.lang.String getElementName()
        Specified by:
        getElementName in interface org.jivesoftware.smack.packet.NamedElement
      • getNamespace

        public java.lang.String getNamespace()
        Specified by:
        getNamespace in interface org.jivesoftware.smack.packet.XmlElement
      • toXML

        public java.lang.String toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
        Specified by:
        toXML in interface org.jivesoftware.smack.packet.Element