public abstract class AbstractFromToMatchesFilter extends java.lang.Object implements StanzaFilter
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFromToMatchesFilter(org.jxmpp.jid.Jid address,
boolean ignoreResourcepart)
Creates a filter matching on the address returned by
getAddressToCompare(Stanza). |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Stanza stanza)
Tests whether or not the specified stanza should pass the filter.
|
protected abstract org.jxmpp.jid.Jid |
getAddressToCompare(Stanza stanza) |
java.lang.String |
toString() |
protected AbstractFromToMatchesFilter(org.jxmpp.jid.Jid address,
boolean ignoreResourcepart)
getAddressToCompare(Stanza). The address must be
the same as the filter address. The second parameter specifies whether the full or the bare addresses are
compared.address - The address to filter for. If null is given, then
getAddressToCompare(Stanza) must also return null to match.ignoreResourcepart - public final boolean accept(Stanza stanza)
StanzaFilteraccept in interface StanzaFilterstanza - the stanza to test.protected abstract org.jxmpp.jid.Jid getAddressToCompare(Stanza stanza)
public final java.lang.String toString()
toString in class java.lang.Object