当前页面:
在线文档首页 >
Java Platform, Enterprise Edition v1.3.1 API Specifications
Java 2 Platform EE v1.3: Class SubjectTerm - Java Platform, Enterprise Edition v1.3.1 API Specifications
javax.mail.search
Class SubjectTerm
java.lang.Object
|
+--javax.mail.search.SearchTerm
|
+--javax.mail.search.StringTerm
|
+--javax.mail.search.SubjectTerm
- public final class SubjectTerm
- extends StringTerm
This class implements comparisons for the Message Subject header.
The comparison is case-insensitive.
Constructor Summary |
SubjectTerm(java.lang.String pattern)
Constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubjectTerm
public SubjectTerm(java.lang.String pattern)
- Constructor.
- Parameters:
pattern
- the pattern to search for
match
public boolean match(Message msg)
- The match method.
- Overrides:
match
in class SearchTerm
- Parameters:
msg
- the pattern match is applied to this Message's
subject header- Returns:
- true if the pattern match succeeds, otherwise false