Class HeadersExtension
- java.lang.Object
-
- org.jivesoftware.smackx.shim.packet.HeadersExtension
-
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element
,org.jivesoftware.smack.packet.ExtensionElement
,org.jivesoftware.smack.packet.NamedElement
,org.jivesoftware.smack.packet.XmlElement
,org.jivesoftware.smack.packet.XmlLangElement
public class HeadersExtension extends java.lang.Object implements org.jivesoftware.smack.packet.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(java.util.List<Header> headerList)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HeadersExtension
from(org.jivesoftware.smack.packet.Stanza packet)
Return the SHIM headers extension of this stanza or null if there is none.java.lang.String
getElementName()
java.util.List<Header>
getHeaders()
java.lang.String
getNamespace()
org.jivesoftware.smack.util.XmlStringBuilder
toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
-
-
-
Field Detail
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
QNAME
public static final javax.xml.namespace.QName QNAME
-
-
Constructor Detail
-
HeadersExtension
public HeadersExtension(java.util.List<Header> headerList)
-
-
Method Detail
-
getHeaders
public java.util.List<Header> getHeaders()
-
getElementName
public java.lang.String getElementName()
- Specified by:
getElementName
in interfaceorg.jivesoftware.smack.packet.NamedElement
-
getNamespace
public java.lang.String getNamespace()
- Specified by:
getNamespace
in interfaceorg.jivesoftware.smack.packet.XmlElement
-
toXML
public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
- Specified by:
toXML
in interfaceorg.jivesoftware.smack.packet.Element
-
from
public static HeadersExtension from(org.jivesoftware.smack.packet.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.
-
-