public interface StanzaView extends XmlLangElement
| Modifier and Type | Method and Description |
|---|---|
StanzaError |
getError()
Returns the error associated with this packet, or
null if there are
no errors. |
default <E extends ExtensionElement> |
getExtension(java.lang.Class<E> extensionElementClass) |
ExtensionElement |
getExtension(javax.xml.namespace.QName qname) |
java.util.List<ExtensionElement> |
getExtensions()
Returns a list of all extension elements of this stanza.
|
<E extends ExtensionElement> |
getExtensions(java.lang.Class<E> extensionElementClass)
Return all extension elements of the given type.
|
java.util.List<ExtensionElement> |
getExtensions(javax.xml.namespace.QName qname) |
org.jxmpp.jid.Jid |
getFrom()
Returns who the stanza is being sent "from" or
null if
the value is not set. |
java.lang.String |
getStanzaId()
Returns the unique ID of the stanza.
|
org.jxmpp.jid.Jid |
getTo()
Returns who the stanza is being sent "to", or
null if
the value is not set. |
default boolean |
hasExtension(java.lang.Class<? extends ExtensionElement> extensionElementClass) |
default boolean |
hasExtension(javax.xml.namespace.QName qname) |
default boolean |
hasExtension(java.lang.String namespace)
Check if a extension element with the given namespace exists.
|
getLanguagejava.lang.String getStanzaId()
null.null if the id is not available.org.jxmpp.jid.Jid getTo()
null if
the value is not set. The XMPP protocol often makes the "to"
attribute optional, so it does not always need to be set.null if the
value has not been set.org.jxmpp.jid.Jid getFrom()
null if
the value is not set. The XMPP protocol often makes the "from"
attribute optional, so it does not always need to be set.null if the
value has not been set.StanzaError getError()
null if there are
no errors.null if there isn't an error.ExtensionElement getExtension(javax.xml.namespace.QName qname)
default boolean hasExtension(javax.xml.namespace.QName qname)
default boolean hasExtension(java.lang.Class<? extends ExtensionElement> extensionElementClass)
default boolean hasExtension(java.lang.String namespace)
namespace - the namespace of the extension element to check for.default <E extends ExtensionElement> E getExtension(java.lang.Class<E> extensionElementClass)
java.util.List<ExtensionElement> getExtensions()
java.util.List<ExtensionElement> getExtensions(javax.xml.namespace.QName qname)
<E extends ExtensionElement> java.util.List<E> getExtensions(java.lang.Class<E> extensionElementClass)
E - the type of extension elements.extensionElementClass - the class of the type of extension elements.