Smack

org.jivesoftware.smackx.entitycaps.packet
Class CapsExtension

java.lang.Object
  extended by org.jivesoftware.smackx.entitycaps.packet.CapsExtension
All Implemented Interfaces:
PacketExtension

public class CapsExtension
extends Object
implements PacketExtension


Constructor Summary
CapsExtension()
           
CapsExtension(String node, String version, String hash)
           
 
Method Summary
 String getElementName()
          Returns the root element name.
 String getHash()
           
 String getNamespace()
          Returns the root element XML namespace.
 String getNode()
           
 String getVer()
           
 void setHash(String hash)
           
 void setNode(String node)
           
 void setVer(String ver)
           
 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

CapsExtension

public CapsExtension()

CapsExtension

public CapsExtension(String node,
                     String version,
                     String hash)
Method Detail

getElementName

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

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

getNamespace

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

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

getNode

public String getNode()

setNode

public void setNode(String node)

getVer

public String getVer()

setVer

public void setVer(String ver)

getHash

public String getHash()

setHash

public void setHash(String hash)

toXML

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