Package org.jivesoftware.smack.filter
Class ToMatchesFilter
java.lang.Object
org.jivesoftware.smack.filter.AbstractFromToMatchesFilter
org.jivesoftware.smack.filter.ToMatchesFilter
- All Implemented Interfaces:
Predicate<Stanza>,StanzaFilter
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ToMatchesFiltercreate(org.jxmpp.jid.Jid address) Creates a filter matching on the "to" field.static ToMatchesFiltercreateBare(org.jxmpp.jid.Jid address) Creates a filter matching on the "to" field.static ToMatchesFiltercreateFull(org.jxmpp.jid.Jid address) Creates a filter matching on the "to" field.protected org.jxmpp.jid.JidgetAddressToCompare(Stanza stanza) Methods inherited from class org.jivesoftware.smack.filter.AbstractFromToMatchesFilter
accept, toStringMethods 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
-
Field Details
-
MATCH_NO_TO_SET
-
-
Method Details
-
create
Creates a filter matching on the "to" field. If the filter address is bare, compares the filter address with the bare from address. Otherwise, compares the filter address with the full from address.- Parameters:
address- The address to filter for. Ifnullis given, the stanza must not have a from address.- Returns:
- filter matching the "to" address.
-
createBare
Creates a filter matching on the "to" field. Compares the bare version of to and filter address.- Parameters:
address- The address to filter for. Ifnullis given, the stanza must not have a from address.- Returns:
- filter matching the "to" address.
-
createFull
Creates a filter matching on the "to" field. Compares the full version, if available, of to and filter address.- Parameters:
address- The address to filter for. Ifnullis given, the stanza must not have a from address.- Returns:
- filter matching the "to" address.
-
getAddressToCompare
- Specified by:
getAddressToComparein classAbstractFromToMatchesFilter
-