javax.mail.search

Class BodyTerm

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.

Field Summary

Fields inherited from class javax.mail.search.StringTerm

ignoreCase, pattern

Constructor Summary

BodyTerm(String pattern)
Constructor specifying a pattern.

Method Summary

boolean
match(Message message)

Methods inherited from class javax.mail.search.StringTerm

equals, getIgnoreCase, getPattern, hashCode, match

Methods inherited from class javax.mail.search.SearchTerm

match

Constructor Details

BodyTerm

public BodyTerm(String pattern)
Constructor specifying a pattern. Defaults to case insensitive matching.
Parameters:
pattern - the pattern for this term

Method Details

match

public boolean match(Message message)
Overrides:
match in interface SearchTerm