StanzaTypeFilter instead.@Deprecated public class PacketTypeFilter extends Object implements StanzaFilter
| Modifier and Type | Field and Description |
|---|---|
static PacketTypeFilter |
MESSAGE
Deprecated.
|
static PacketTypeFilter |
PRESENCE
Deprecated.
|
| Constructor and Description |
|---|
PacketTypeFilter(Class<? extends Stanza> packetType)
Deprecated.
Creates a new stanza(/packet) type filter that will filter for packets that are the
same type as packetType.
|
| 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 static final PacketTypeFilter PRESENCE
public static final PacketTypeFilter MESSAGE
public PacketTypeFilter(Class<? extends Stanza> packetType)
packetType - the Class type.public boolean accept(Stanza packet)
StanzaFilteraccept in interface StanzaFilterpacket - the stanza(/packet) to test.