org.apache.james.transport.matchers
Class HasAttachment
java.lang.Object
org.apache.mailet.GenericMatcher
org.apache.james.transport.matchers.HasAttachment
- All Implemented Interfaces:
- Matcher, MatcherConfig
- public class HasAttachment
- extends GenericMatcher
Checks whether this message has an attachment
- Version:
- CVS $Revision: 365582 $ $Date: 2006-01-03 03:51:21 -0500 (Tue, 03 Jan 2006) $
Method Summary |
Collection |
match(Mail mail)
Either every recipient is matching or neither of them. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HasAttachment
public HasAttachment()
match
public Collection match(Mail mail)
throws MessagingException
- Either every recipient is matching or neither of them.
- Specified by:
match
in interface Matcher
- Specified by:
match
in class GenericMatcher
- Parameters:
mail
- - the Mail object that contains the MimeMessage and
routing information
- Returns:
- java.util.Collection - the recipients that the mailet container should have the
mailet affect.
- Throws:
MessagingException
- if no attachment is found and at least one exception was thrown
"Copyright © 1999-2006 Apache Jakarta Project. All Rights Reserved."