Smack

org.jivesoftware.smackx.packet
Class Header

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

public class Header
extends Object
implements PacketExtension

Represents a Header entry as specified by the Stanza Headers and Internet Metadata (SHIM)

Author:
Robin Collier

Constructor Summary
Header(String name, String value)
           
 
Method Summary
 String getElementName()
          Returns the root element name.
 String getName()
           
 String getNamespace()
          Returns the root element XML namespace.
 String getValue()
           
 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

Header

public Header(String name,
              String value)
Method Detail

getName

public String getName()

getValue

public String getValue()

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.

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.