Module org.eclipse.angus.mail
Package org.eclipse.angus.mail.imap
Class IMAPMessage.FetchProfileCondition
java.lang.Object
org.eclipse.angus.mail.imap.IMAPMessage.FetchProfileCondition
- All Implemented Interfaces:
org.eclipse.angus.mail.imap.Utility.Condition
- Enclosing class:
- IMAPMessage
public static class IMAPMessage.FetchProfileCondition
extends Object
implements org.eclipse.angus.mail.imap.Utility.Condition
This class implements the test to be done on each
message in the folder. The test is to check whether the
message has already cached all the items requested in the
FetchProfile. If any item is missing, the test succeeds and
breaks out.
-
Constructor Summary
ConstructorDescriptionFetchProfileCondition
(FetchProfile fp, org.eclipse.angus.mail.imap.protocol.FetchItem[] fitems) Create a FetchProfileCondition to determine if we need to fetch any of the information specified in the FetchProfile. -
Method Summary
Modifier and TypeMethodDescriptionboolean
test
(IMAPMessage m) Return true if we NEED to fetch the requested information for the specified message.
-
Constructor Details
-
FetchProfileCondition
public FetchProfileCondition(FetchProfile fp, org.eclipse.angus.mail.imap.protocol.FetchItem[] fitems) Create a FetchProfileCondition to determine if we need to fetch any of the information specified in the FetchProfile.- Parameters:
fp
- the FetchProfilefitems
- the FETCH items
-
-
Method Details
-
test
Return true if we NEED to fetch the requested information for the specified message.- Specified by:
test
in interfaceorg.eclipse.angus.mail.imap.Utility.Condition
-