Package org.jivesoftware.smack.filter
Class IQTypeFilter
- java.lang.Object
-
- org.jivesoftware.smack.filter.FlexibleStanzaTypeFilter<IQ>
-
- org.jivesoftware.smack.filter.IQTypeFilter
-
- All Implemented Interfaces:
StanzaFilter
,Predicate<Stanza>
public final class IQTypeFilter extends FlexibleStanzaTypeFilter<IQ>
A filter for IQ stanza types. Returns true only if the stanza is an IQ packet and it matches the type provided in the constructor.
-
-
Field Summary
Fields Modifier and Type Field Description static StanzaFilter
ERROR
static StanzaFilter
GET
static StanzaFilter
GET_OR_SET
static StanzaFilter
RESULT
static StanzaFilter
SET
-
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(IQ iq)
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
-
GET
public static final StanzaFilter GET
-
SET
public static final StanzaFilter SET
-
RESULT
public static final StanzaFilter RESULT
-
ERROR
public static final StanzaFilter ERROR
-
GET_OR_SET
public static final StanzaFilter GET_OR_SET
-
-
Method Detail
-
acceptSpecific
protected boolean acceptSpecific(IQ iq)
- Specified by:
acceptSpecific
in classFlexibleStanzaTypeFilter<IQ>
-
toString
public String toString()
- Overrides:
toString
in classFlexibleStanzaTypeFilter<IQ>
-
-