Package org.jivesoftware.smack.filter
Class AbstractFromToMatchesFilter
java.lang.Object
org.jivesoftware.smack.filter.AbstractFromToMatchesFilter
- All Implemented Interfaces:
Predicate<Stanza>,StanzaFilter
- Direct Known Subclasses:
FromMatchesFilter,ToMatchesFilter
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFromToMatchesFilter(org.jxmpp.jid.Jid address, boolean ignoreResourcepart) Creates a filter matching on the address returned bygetAddressToCompare(Stanza).protectedAbstractFromToMatchesFilter(org.jxmpp.jid.Jid address, org.jivesoftware.smack.filter.AbstractFromToMatchesFilter.MatchMode matchMode) Creates a filter matching on the address returned bygetAddressToCompare(Stanza). -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.filter.StanzaFilter
asPredicate, test
-
Constructor Details
-
AbstractFromToMatchesFilter
protected AbstractFromToMatchesFilter(org.jxmpp.jid.Jid address, boolean ignoreResourcepart) Creates a filter matching on the address returned bygetAddressToCompare(Stanza). The address must be the same as the filter address. The second parameter specifies whether the full or the bare addresses are compared.- Parameters:
address- The address to filter for. Ifnullis given, thengetAddressToCompare(Stanza)must also returnnullto match.ignoreResourcepart- TODO javadoc me please
-
AbstractFromToMatchesFilter
protected AbstractFromToMatchesFilter(org.jxmpp.jid.Jid address, org.jivesoftware.smack.filter.AbstractFromToMatchesFilter.MatchMode matchMode) Creates a filter matching on the address returned bygetAddressToCompare(Stanza). The address must be the same as the filter address. The second parameter specifies whether the full or the bare addresses are compared.- Parameters:
address- The address to filter for. Ifnullis given, thengetAddressToCompare(Stanza)must also returnnullto match.matchMode- the match mode.
-
-
Method Details
-
accept
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.
-
getAddressToCompare
-
toString
-