Methods
getNamespace()
PrivateFunction: getNamespace
Returns the XML namespace attribute on an element.
If ignoreNamespaceFragment
was passed in for this handler, then the
URL fragment will be stripped.
Parameters: (XMLElement) elem - The XML element with the namespace.
Returns: The namespace, with optionally the fragment stripped.
isMatch()
PrivateFunction: isMatch Tests if a stanza matches the Strophe.Handler.
Parameters: (XMLElement) elem - The XML element to test.
Returns: true if the stanza matches and false otherwise.
namespaceMatch()
PrivateFunction: namespaceMatch Tests if a stanza matches the namespace set for this Strophe.Handler.
Parameters: (XMLElement) elem - The XML element to test.
Returns: true if the stanza matches and false otherwise.
run()
PrivateFunction: run Run the callback on a matching stanza.
Parameters: (XMLElement) elem - The DOM element that triggered the Strophe.Handler.
Returns: A boolean indicating if the handler should remain active.
toString()
PrivateFunction: toString Get a String representation of the Strophe.Handler object.
Returns: A String.