Smack

org.jivesoftware.smackx.packet
Class HeadersExtension

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

public class HeadersExtension
extends Object
implements PacketExtension

Extension representing a list of headers as specified in Stanza Headers and Internet Metadata (SHIM)

Author:
Robin Collier
See Also:
Header

Field Summary
static String NAMESPACE
           
 
Constructor Summary
HeadersExtension(Collection<Header> headerList)
           
 
Method Summary
 String getElementName()
          Returns the root element name.
 Collection<Header> getHeaders()
           
 String getNamespace()
          Returns the root element XML namespace.
 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
 

Field Detail

NAMESPACE

public static final String NAMESPACE
See Also:
Constant Field Values
Constructor Detail

HeadersExtension

public HeadersExtension(Collection<Header> headerList)
Method Detail

getHeaders

public Collection<Header> getHeaders()

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.