public final class StanzaTypeFilter extends java.lang.Object implements StanzaFilter
| Modifier and Type | Field and Description |
|---|---|
static StanzaTypeFilter |
IQ |
static StanzaTypeFilter |
MESSAGE |
static StanzaTypeFilter |
PRESENCE |
| Constructor and Description |
|---|
StanzaTypeFilter(java.lang.Class<? extends Stanza> packetType)
Creates a new stanza(/packet) type filter that will filter for packets that are the
same type as packetType.
|
public static final StanzaTypeFilter PRESENCE
public static final StanzaTypeFilter MESSAGE
public static final StanzaTypeFilter IQ
public StanzaTypeFilter(java.lang.Class<? extends Stanza> packetType)
packetType - the Class type.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