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 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.
 String getElementName()
          Returns the root element name.
 String getNamespace()
          Returns the root element XML namespace.
 String toXML()
          Returns the XML reppresentation 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 String getNamespace()
Description copied from interface: PacketExtension
Returns the root element XML namespace.

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

getElementName

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

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

toXML

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

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

Smack

Copyright © 2003-2007 Jive Software.