javax.mail.search
Class BodyTerm
java.lang.Object
javax.mail.search.SearchTerm
javax.mail.search.StringTerm
javax.mail.search.BodyTerm
- All Implemented Interfaces:
- Serializable
public final class BodyTerm
- extends StringTerm
Term that matches on a message body. All parts
that have
a MIME type of "text/*" are searched.
- Version:
- $Rev: 421852 $ $Date: 2006-07-14 03:02:19 -0700 (Fri, 14 Jul 2006) $
- See Also:
- Serialized Form
Method Summary |
boolean |
match(Message message)
Checks a matching criteria defined by the concrete subclass of this Term. |
BodyTerm
public BodyTerm(String pattern)
match
public boolean match(Message message)
- Description copied from class:
SearchTerm
- Checks a matching criteria defined by the concrete subclass of this Term.
- Specified by:
match
in class SearchTerm
- Parameters:
message
- the message to apply the matching criteria to
- Returns:
- true if the matching criteria is met
Copyright © 2006 Apache Software Foundation. All Rights Reserved.