public final class ToMatchesFilter extends AbstractFromToMatchesFilter
Modifier and Type | Field and Description |
---|---|
static ToMatchesFilter |
MATCH_NO_TO_SET |
Constructor and Description |
---|
ToMatchesFilter(org.jxmpp.jid.Jid address,
boolean ignoreResourcepart) |
Modifier and Type | Method and Description |
---|---|
static ToMatchesFilter |
create(org.jxmpp.jid.Jid address)
Creates a filter matching on the "to" field.
|
static ToMatchesFilter |
createBare(org.jxmpp.jid.Jid address)
Creates a filter matching on the "to" field.
|
static ToMatchesFilter |
createFull(org.jxmpp.jid.Jid address)
Creates a filter matching on the "to" field.
|
protected org.jxmpp.jid.Jid |
getAddressToCompare(Stanza stanza) |
accept, toString
public static final ToMatchesFilter MATCH_NO_TO_SET
public ToMatchesFilter(org.jxmpp.jid.Jid address, boolean ignoreResourcepart)
public static ToMatchesFilter create(org.jxmpp.jid.Jid address)
address
- The address to filter for. If null
is given, the stanza must not
have a from address.public static ToMatchesFilter createBare(org.jxmpp.jid.Jid address)
address
- The address to filter for. If null
is given, the stanza must not
have a from address.public static ToMatchesFilter createFull(org.jxmpp.jid.Jid address)
address
- The address to filter for. If null
is given, the stanza must not
have a from address.protected org.jxmpp.jid.Jid getAddressToCompare(Stanza stanza)
getAddressToCompare
in class AbstractFromToMatchesFilter