Package org.jivesoftware.smack.filter
Class PresenceTypeFilter
- java.lang.Object
-
- org.jivesoftware.smack.filter.FlexibleStanzaTypeFilter<Presence>
-
- org.jivesoftware.smack.filter.PresenceTypeFilter
-
- All Implemented Interfaces:
StanzaFilter,Predicate<Stanza>
public final class PresenceTypeFilter extends FlexibleStanzaTypeFilter<Presence>
A filter for Presence types. Returns true only if the stanza is an Presence stanza and it matches the type provided in the constructor.
-
-
Field Summary
Fields Modifier and Type Field Description static PresenceTypeFilterAVAILABLEstatic PresenceTypeFilterERRORstatic StanzaFilterOUTGOING_PRESENCE_BROADCASTstatic PresenceTypeFilterPROBEstatic PresenceTypeFilterSUBSCRIBEstatic PresenceTypeFilterSUBSCRIBEDstatic PresenceTypeFilterUNAVAILABLEstatic PresenceTypeFilterUNSUBSCRIBEstatic PresenceTypeFilterUNSUBSCRIBED-
Fields inherited from class org.jivesoftware.smack.filter.FlexibleStanzaTypeFilter
stanzaType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanacceptSpecific(Presence presence)StringtoString()-
Methods inherited from class org.jivesoftware.smack.filter.FlexibleStanzaTypeFilter
accept
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.filter.StanzaFilter
asPredicate, test
-
-
-
-
Field Detail
-
AVAILABLE
public static final PresenceTypeFilter AVAILABLE
-
UNAVAILABLE
public static final PresenceTypeFilter UNAVAILABLE
-
SUBSCRIBE
public static final PresenceTypeFilter SUBSCRIBE
-
SUBSCRIBED
public static final PresenceTypeFilter SUBSCRIBED
-
UNSUBSCRIBE
public static final PresenceTypeFilter UNSUBSCRIBE
-
UNSUBSCRIBED
public static final PresenceTypeFilter UNSUBSCRIBED
-
ERROR
public static final PresenceTypeFilter ERROR
-
PROBE
public static final PresenceTypeFilter PROBE
-
OUTGOING_PRESENCE_BROADCAST
public static final StanzaFilter OUTGOING_PRESENCE_BROADCAST
-
-
Method Detail
-
acceptSpecific
protected boolean acceptSpecific(Presence presence)
- Specified by:
acceptSpecificin classFlexibleStanzaTypeFilter<Presence>
-
toString
public String toString()
- Overrides:
toStringin classFlexibleStanzaTypeFilter<Presence>
-
-