Class AbstractFromToMatchesFilter

    • Constructor Detail

      • AbstractFromToMatchesFilter

        protected AbstractFromToMatchesFilter​(Jid address,
                                              boolean ignoreResourcepart)
        Creates a filter matching on the address returned by getAddressToCompare(Stanza). The address must be the same as the filter address. The second parameter specifies whether the full or the bare addresses are compared.
        Parameters:
        address - The address to filter for. If null is given, then getAddressToCompare(Stanza) must also return null to match.
        ignoreResourcepart - TODO javadoc me please
    • Method Detail

      • accept

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

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