Class RecipientStringTerm

  • All Implemented Interfaces:
    java.io.Serializable

    public final class RecipientStringTerm
    extends AddressStringTerm
    A string comparison of the recipient headers in a message.
    Version:
    1.4
    Author:
    Chris Burdess
    See Also:
    Serialized Form
    • Constructor Detail

      • RecipientStringTerm

        public RecipientStringTerm​(Message.RecipientType type,
                                   java.lang.String pattern)
        Constructor.
        Parameters:
        type - the recipient type
        address - the address pattern for comparison
    • Method Detail

      • match

        public boolean match​(Message msg)
        Returns true only if the address specified in this term is a substring of the recipient address in the given message.
        Specified by:
        match in class SearchTerm