Smack

org.jivesoftware.smackx.packet
Class StreamInitiation.Feature

java.lang.Object
  extended by org.jivesoftware.smackx.packet.StreamInitiation.Feature
All Implemented Interfaces:
PacketExtension
Enclosing class:
StreamInitiation

public class StreamInitiation.Feature
extends java.lang.Object
implements PacketExtension

The feature negotiation portion of the StreamInitiation packet.

Author:
Alexander Wenckus

Constructor Summary
StreamInitiation.Feature(DataForm data)
          The dataform can be provided as part of the constructor.
 
Method Summary
 DataForm getData()
          Returns the dataform associated with the feature negotiation.
 java.lang.String getElementName()
          Returns the root element name.
 java.lang.String getNamespace()
          Returns the root element XML namespace.
 java.lang.String toXML()
          Returns the XML representation of the PacketExtension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamInitiation.Feature

public StreamInitiation.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.

getNamespace

public java.lang.String getNamespace()
Description copied from interface: PacketExtension
Returns the root element XML namespace.

Specified by:
getNamespace in interface PacketExtension
Returns:
the namespace.

getElementName

public java.lang.String getElementName()
Description copied from interface: PacketExtension
Returns the root element name.

Specified by:
getElementName in interface PacketExtension
Returns:
the element name.

toXML

public java.lang.String toXML()
Description copied from interface: PacketExtension
Returns the XML representation of the PacketExtension.

Specified by:
toXML in interface PacketExtension
Returns:
the packet extension as XML.

Smack

Copyright © 2003-2007 Jive Software.