public class FromMatchesFilter extends java.lang.Object implements StanzaFilter
| 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 |
|---|---|
boolean |
accept(Stanza packet)
Tests whether or not the specified stanza should pass the filter.
|
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.
|
java.lang.String |
toString() |
public FromMatchesFilter(org.jxmpp.jid.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(org.jxmpp.jid.Jid address)
address - The address to filter for. If null is given, the stanza(/packet) 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(/packet) 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(/packet) must not
have a from address.public boolean accept(Stanza packet)
StanzaFilteraccept in interface StanzaFilterpacket - the stanza(/packet) to test.public java.lang.String toString()
toString in class java.lang.Object