Package org.jivesoftware.smack.filter
Class FlexibleStanzaTypeFilter<S extends Stanza>
java.lang.Object
org.jivesoftware.smack.filter.FlexibleStanzaTypeFilter<S>
- All Implemented Interfaces:
Predicate<Stanza>
,StanzaFilter
- Direct Known Subclasses:
IoTFieldsExtensionFilter
,IQTypeFilter
,MamResultFilter
,MessageTypeFilter
,MessageWithBodiesFilter
,MessageWithSubjectFilter
,MessageWithThreadFilter
,PresenceTypeFilter
,SetActiveListFilter
,SetDefaultListFilter
,ThreadFilter
public abstract class FlexibleStanzaTypeFilter<S extends Stanza>
extends Object
implements StanzaFilter
Filters for stanzas of a particular type and allows a custom method to further filter the packets.
-
Field Details
-
stanzaType
-
-
Constructor Details
-
FlexibleStanzaTypeFilter
-
FlexibleStanzaTypeFilter
public FlexibleStanzaTypeFilter()
-
-
Method Details
-
accept
Description copied from interface:StanzaFilter
Tests whether or not the specified stanza should pass the filter.- Specified by:
accept
in interfaceStanzaFilter
- Parameters:
packet
- the stanza to test.- Returns:
- true if and only if
stanza
passes the filter.
-
acceptSpecific
-
toString
-