Class ToMatchesFilter

All Implemented Interfaces:
Predicate<Stanza>, StanzaFilter

public final class ToMatchesFilter extends AbstractFromToMatchesFilter
  • Field Details

  • Method Details

    • create

      public static ToMatchesFilter create(org.jxmpp.jid.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(org.jxmpp.jid.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(org.jxmpp.jid.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.
    • getAddressToCompare

      protected org.jxmpp.jid.Jid getAddressToCompare(Stanza stanza)
      Specified by:
      getAddressToCompare in class AbstractFromToMatchesFilter