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