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