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