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 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
-
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)
-
-
-
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 interfaceorg.jivesoftware.smack.packet.NamedElement
-
getNamespace
public java.lang.String getNamespace()
- Specified by:
getNamespace
in interfaceorg.jivesoftware.smack.packet.XmlElement
-
toXML
public java.lang.String toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
- Specified by:
toXML
in interfaceorg.jivesoftware.smack.packet.Element
-
-