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()
NamedElementgetElementName in interface NamedElementpublic String getNamespace()
ExtensionElementgetNamespace in interface ExtensionElementpublic XmlStringBuilder toXML()
Elementpublic static HeadersExtension from(Stanza packet)
packet - Copyright © 2024. All rights reserved.