| java.lang.Object org.apache.mailet.GenericMatcher org.apache.mailet.GenericRecipientMatcher
All known Subclasses: org.apache.james.transport.matchers.UserIs, org.apache.james.transport.matchers.RecipientIsLocal, org.apache.james.transport.matchers.HostIsLocal, org.apache.james.transport.matchers.CommandForListserv, org.apache.james.transport.matchers.RecipientIsRegex, org.apache.james.transport.matchers.RecipientIs, org.apache.james.transport.matchers.CommandListservMatcher, org.apache.james.transport.matchers.HostIs,
GenericRecipientMatcher | abstract public class GenericRecipientMatcher extends GenericMatcher (Code) | | GenericMatcher makes writing recipient based matchers easier. It provides
simple versions of the lifecycle methods init and destroy and of the methods
in the MatcherConfig interface. GenericMatcher also implements the log method,
declared in the MatcherContext interface.
version: 1.0.0, 24/04/1999 |
Method Summary | |
final public Collection | match(Mail mail) Matches each recipient one by one through matchRecipient(MailAddress
recipient) method. | abstract public boolean | matchRecipient(MailAddress recipient) Simple check to match exclusively on the email address (not
message information). |
match | final public Collection match(Mail mail) throws MessagingException(Code) | | Matches each recipient one by one through matchRecipient(MailAddress
recipient) method. Handles splitting the recipients Collection
as appropriate.
Parameters: mail - - the message and routing information to determine whether to match Collection the Collection of MailAddress objects that have been matched |
matchRecipient | abstract public boolean matchRecipient(MailAddress recipient) throws MessagingException(Code) | | Simple check to match exclusively on the email address (not
message information).
Parameters: recipient - - the address to determine whether to match boolean whether the recipient is a match |
|
|