public final class

BodyTerm

extends StringTerm
java.lang.Object
   ↳ com.google.code.javax.mail.search.SearchTerm
     ↳ com.google.code.javax.mail.search.StringTerm
       ↳ com.google.code.javax.mail.search.BodyTerm

Class Overview

This class implements searches on a message body. All parts of the message that are of MIME type "text/*" are searched. The pattern is a simple string that must appear as a substring in the message body.

Summary

Constants
long serialVersionUID
[Expand]
Inherited Constants
From class com.google.code.javax.mail.search.StringTerm
From class com.google.code.javax.mail.search.SearchTerm
[Expand]
Inherited Fields
From class com.google.code.javax.mail.search.StringTerm
Public Constructors
BodyTerm(String pattern)
Constructor
Public Methods
boolean equals(Object obj)
Equality comparison.
boolean match(Message msg)
The match method.
[Expand]
Inherited Methods
From class com.google.code.javax.mail.search.StringTerm
From class com.google.code.javax.mail.search.SearchTerm
From class java.lang.Object

Constants

private static final long serialVersionUID

Constant Value: -4888862527916911385 (0xbc27456ee3cb54e7)

Public Constructors

public BodyTerm (String pattern)

Constructor

Parameters
pattern The String to search for

Public Methods

public boolean equals (Object obj)

Equality comparison.

Parameters
obj

public boolean match (Message msg)

The match method.

Parameters
msg The pattern search is applied on this Message's body
Returns
  • true if the pattern is found; otherwise false