Class AbstractJidTypeFilter
- java.lang.Object
-
- org.jivesoftware.smack.filter.jidtype.AbstractJidTypeFilter
-
- All Implemented Interfaces:
StanzaFilter,Predicate<Stanza>
- Direct Known Subclasses:
FromJidTypeFilter
public abstract class AbstractJidTypeFilter extends Object implements StanzaFilter
Base class for XMPP address type filters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractJidTypeFilter.JidType
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractJidTypeFilter(AbstractJidTypeFilter.JidType jidType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanaccept(Stanza stanza)Tests whether or not the specified stanza should pass the filter.protected abstract JidgetJidToMatchFrom(Stanza stanza)StringtoString()-
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
-
-
-
-
Constructor Detail
-
AbstractJidTypeFilter
protected AbstractJidTypeFilter(AbstractJidTypeFilter.JidType jidType)
-
-
Method Detail
-
accept
public boolean accept(Stanza stanza)
Description copied from interface:StanzaFilterTests whether or not the specified stanza should pass the filter.- Specified by:
acceptin interfaceStanzaFilter- Parameters:
stanza- the stanza to test.- Returns:
- true if and only if
stanzapasses the filter.
-
getJidToMatchFrom
protected abstract Jid getJidToMatchFrom(Stanza stanza)
-
-