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 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)
StanzaFilter
accept
in interface StanzaFilter
packet
- the stanza to test.