public class HeadersExtension extends Object implements PacketExtension
Header
Constructor and Description |
---|
HeadersExtension(Collection<Header> headerList) |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String NAMESPACE
public HeadersExtension(Collection<Header> headerList)
public Collection<Header> getHeaders()
public String getElementName()
PacketExtension
getElementName
in interface PacketExtension
public String getNamespace()
PacketExtension
getNamespace
in interface PacketExtension
public String toXML()
PacketExtension
toXML
in interface PacketExtension