Class FlexibleStanzaTypeFilter<S extends Stanza>

    • Field Detail

      • stanzaType

        protected final java.lang.Class<S extends Stanza> stanzaType
    • Constructor Detail

      • FlexibleStanzaTypeFilter

        public FlexibleStanzaTypeFilter​(java.lang.Class<S> packetType)
      • FlexibleStanzaTypeFilter

        public FlexibleStanzaTypeFilter()
    • Method Detail

      • accept

        public final boolean accept​(Stanza packet)
        Description copied from interface: StanzaFilter
        Tests whether or not the specified stanza should pass the filter.
        Specified by:
        accept in interface StanzaFilter
        Parameters:
        packet - the stanza to test.
        Returns:
        true if and only if stanza passes the filter.
      • acceptSpecific

        protected abstract boolean acceptSpecific​(S packet)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object