Class HeadersExtension
- java.lang.Object
-
- org.jivesoftware.smackx.shim.packet.HeadersExtension
-
- All Implemented Interfaces:
Element,ExtensionElement,FullyQualifiedElement,NamedElement,XmlLangElement
public class HeadersExtension extends Object implements ExtensionElement
Extension representing a list of headers as specified in Stanza Headers and Internet Metadata (SHIM).- See Also:
Header
-
-
Constructor Summary
Constructors Constructor Description HeadersExtension(List<Header> headerList)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HeadersExtensionfrom(Stanza packet)Return the SHIM headers extension of this stanza or null if there is none.StringgetElementName()Returns the root element name.List<Header>getHeaders()StringgetNamespace()Returns the root element XML namespace.XmlStringBuildertoXML(XmlEnvironment enclosingNamespace)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HeadersExtension
public HeadersExtension(List<Header> headerList)
-
-
Method Detail
-
getHeaders
public List<Header> getHeaders()
-
getElementName
public String getElementName()
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
public String getNamespace()
Description copied from interface:FullyQualifiedElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceFullyQualifiedElement- Returns:
- the namespace.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
from
public static HeadersExtension from(Stanza packet)
Return the SHIM headers extension of this stanza or null if there is none.- Parameters:
packet- TODO javadoc me please- Returns:
- the headers extension or null.
-
-