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 PresenceTypeFilter
AVAILABLE
static PresenceTypeFilter
ERROR
static StanzaFilter
OUTGOING_PRESENCE_BROADCAST
static PresenceTypeFilter
PROBE
static PresenceTypeFilter
SUBSCRIBE
static PresenceTypeFilter
SUBSCRIBED
static PresenceTypeFilter
UNAVAILABLE
static PresenceTypeFilter
UNSUBSCRIBE
static PresenceTypeFilter
UNSUBSCRIBED
-
Fields inherited from class org.jivesoftware.smack.filter.FlexibleStanzaTypeFilter
stanzaType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
acceptSpecific(Presence presence)
java.lang.String
toString()
-
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:
acceptSpecific
in classFlexibleStanzaTypeFilter<Presence>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classFlexibleStanzaTypeFilter<Presence>
-
-