Class ToMatchesFilter

    • Constructor Detail

    • Method Detail

      • create

        public static ToMatchesFilter create​(Jid address)
        Creates a filter matching on the "to" field. If the filter address is bare, compares the filter address with the bare from address. Otherwise, compares the filter address with the full from address.
        Parameters:
        address - The address to filter for. If null is given, the stanza must not have a from address.
        Returns:
        filter matching the "to" address.
      • createBare

        public static ToMatchesFilter createBare​(Jid address)
        Creates a filter matching on the "to" field. Compares the bare version of to and filter address.
        Parameters:
        address - The address to filter for. If null is given, the stanza must not have a from address.
        Returns:
        filter matching the "to" address.
      • createFull

        public static ToMatchesFilter createFull​(Jid address)
        Creates a filter matching on the "to" field. Compares the full version, if available, of to and filter address.
        Parameters:
        address - The address to filter for. If null is given, the stanza must not have a from address.
        Returns:
        filter matching the "to" address.