|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.mailet.GenericMatcher | +--org.apache.james.transport.matchers.SizeGreaterThan
Checks whether the message (entire message, not just content) is greater than a certain number of bytes. You can use 'k' and 'm' as optional postfixes. In other words, "1m" is the same as writing "1024k", which is the same as "1048576".
Constructor Summary | |
SizeGreaterThan()
|
Method Summary | |
void |
init()
A convenience method which can be overridden so that there's no need to call super.init(config). |
java.util.Collection |
match(Mail mail)
Called by the matcher container to allow the matcher to process a message. |
Methods inherited from class org.apache.mailet.GenericMatcher |
destroy, getCondition, getMailetContext, getMatcherConfig, getMatcherInfo, getMatcherName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SizeGreaterThan()
Method Detail |
public void init()
GenericMatcher
init
in class GenericMatcher
public java.util.Collection match(Mail mail) throws javax.mail.MessagingException
GenericMatcher
match
in interface Matcher
match
in class GenericMatcher
mail
- - the Mail object that contains the MimeMessage and
routing information
javax.mail.MessagingException
- - if an exception occurs that interferes with the mailet's normal operation
occurred
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |