Package org.jivesoftware.smack.filter
Class StanzaExtensionFilter
java.lang.Object
org.jivesoftware.smack.filter.StanzaExtensionFilter
- All Implemented Interfaces:
StanzaFilter,Predicate<Stanza>
Filters for stanzas with a particular type of stanza extension.
-
Constructor Summary
ConstructorsConstructorDescriptionStanzaExtensionFilter(String namespace) Creates a new stanza extension filter.StanzaExtensionFilter(String elementName, String namespace) Creates a new stanza extension filter.StanzaExtensionFilter(ExtensionElement packetExtension) Creates a new stanza extension filter for the given stanza extension. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.filter.StanzaFilter
asPredicate, test
-
Constructor Details
-
StanzaExtensionFilter
Creates a new stanza extension filter. Stanzas will pass the filter if they have a stanza extension that matches the specified element name and namespace.- Parameters:
elementName- the XML element name of the stanza extension.namespace- the XML namespace of the stanza extension.
-
StanzaExtensionFilter
Creates a new stanza extension filter. Stanzas will pass the filter if they have a stanza extension that matches the specified namespace.- Parameters:
namespace- the XML namespace of the stanza extension.
-
StanzaExtensionFilter
Creates a new stanza extension filter for the given stanza extension.- Parameters:
packetExtension- TODO javadoc me please
-
-
Method Details
-
accept
Description copied from interface:StanzaFilterTests whether or not the specified stanza should pass the filter.- Specified by:
acceptin interfaceStanzaFilter- Parameters:
packet- the stanza to test.- Returns:
- true if and only if
stanzapasses the filter.
-
toString
-