public class StanzaIdFilter extends java.lang.Object implements StanzaFilter
Constructor and Description |
---|
StanzaIdFilter(Stanza stanza)
Creates a new stanza ID filter using the specified stanza's ID.
|
StanzaIdFilter(java.lang.String stanzaID)
Creates a new stanza ID filter using the specified stanza ID.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Stanza stanza)
Tests whether or not the specified stanza should pass the filter.
|
java.lang.String |
toString() |
public StanzaIdFilter(Stanza stanza)
stanza
- the stanza which the ID is taken from.public StanzaIdFilter(java.lang.String stanzaID)
stanzaID
- the stanza ID to filter for.public boolean accept(Stanza stanza)
StanzaFilter
accept
in interface StanzaFilter
stanza
- the stanza(/packet) to test.public java.lang.String toString()
toString
in class java.lang.Object