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