Package org.jivesoftware.smack.filter
Class MessageTypeFilter
- java.lang.Object
-
- org.jivesoftware.smack.filter.FlexibleStanzaTypeFilter<Message>
-
- org.jivesoftware.smack.filter.MessageTypeFilter
-
- All Implemented Interfaces:
StanzaFilter
,Predicate<Stanza>
public final class MessageTypeFilter extends FlexibleStanzaTypeFilter<Message>
Filters for packets of a specific type of Message (e.g. CHAT).- See Also:
Message.Type
-
-
Field Summary
Fields Modifier and Type Field Description static StanzaFilter
CHAT
static StanzaFilter
ERROR
static StanzaFilter
GROUPCHAT
static StanzaFilter
HEADLINE
static StanzaFilter
NORMAL
static StanzaFilter
NORMAL_OR_CHAT
static StanzaFilter
NORMAL_OR_CHAT_OR_HEADLINE
static StanzaFilter
NORMAL_OR_HEADLINE
-
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(Message message)
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
-
NORMAL
public static final StanzaFilter NORMAL
-
CHAT
public static final StanzaFilter CHAT
-
GROUPCHAT
public static final StanzaFilter GROUPCHAT
-
HEADLINE
public static final StanzaFilter HEADLINE
-
ERROR
public static final StanzaFilter ERROR
-
NORMAL_OR_CHAT
public static final StanzaFilter NORMAL_OR_CHAT
-
NORMAL_OR_HEADLINE
public static final StanzaFilter NORMAL_OR_HEADLINE
-
NORMAL_OR_CHAT_OR_HEADLINE
public static final StanzaFilter NORMAL_OR_CHAT_OR_HEADLINE
-
-
Method Detail
-
acceptSpecific
protected boolean acceptSpecific(Message message)
- Specified by:
acceptSpecific
in classFlexibleStanzaTypeFilter<Message>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classFlexibleStanzaTypeFilter<Message>
-
-