Class StreamInitiation.Feature

java.lang.Object
org.jivesoftware.smackx.si.packet.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 Object implements org.jivesoftware.smack.packet.ExtensionElement
The feature negotiation portion of the StreamInitiation packet.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final QName
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    The dataform can be provided as part of the constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the dataform associated with the feature negotiation.
     
     
    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 Details

    • QNAME

      public static final QName QNAME
  • Constructor Details

    • Feature

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

    • getData

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

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

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

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