public class StanzaExtensionFilter extends java.lang.Object implements StanzaFilter
| Constructor and Description |
|---|
StanzaExtensionFilter(ExtensionElement packetExtension)
Creates a new stanza extension filter for the given stanza extension.
|
StanzaExtensionFilter(java.lang.String namespace)
Creates a new stanza extension filter.
|
StanzaExtensionFilter(java.lang.String elementName,
java.lang.String namespace)
Creates a new stanza extension filter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Stanza packet)
Tests whether or not the specified stanza should pass the filter.
|
java.lang.String |
toString() |
public StanzaExtensionFilter(java.lang.String elementName,
java.lang.String namespace)
elementName - the XML element name of the stanza extension.namespace - the XML namespace of the stanza extension.public StanzaExtensionFilter(java.lang.String namespace)
namespace - the XML namespace of the stanza extension.public StanzaExtensionFilter(ExtensionElement packetExtension)
packetExtension - public boolean accept(Stanza packet)
StanzaFilteraccept in interface StanzaFilterpacket - the stanza(/packet) to test.public java.lang.String toString()
toString in class java.lang.Object