public class HeadersExtension extends Object implements ExtensionElement
Header
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT |
static String |
NAMESPACE |
Constructor and Description |
---|
HeadersExtension(List<Header> headerList) |
Modifier and Type | Method and Description |
---|---|
static HeadersExtension |
from(Stanza packet)
Return the SHIM headers extension of this stanza or null if there is none.
|
String |
getElementName()
Returns the root element name.
|
List<Header> |
getHeaders() |
String |
getNamespace()
Returns the root element XML namespace.
|
XmlStringBuilder |
toXML()
Returns the XML representation of this Element.
|
public static final String ELEMENT
public static final String NAMESPACE
public String getElementName()
NamedElement
getElementName
in interface NamedElement
public String getNamespace()
ExtensionElement
getNamespace
in interface ExtensionElement
public XmlStringBuilder toXML()
Element
public static HeadersExtension from(Stanza packet)
packet
- Copyright © 2017. All rights reserved.