Package com.sun.mail.imap
Class IMAPMessage.FetchProfileCondition
- java.lang.Object
-
- com.sun.mail.imap.IMAPMessage.FetchProfileCondition
-
- All Implemented Interfaces:
Utility.Condition
- Enclosing class:
- IMAPMessage
public static class IMAPMessage.FetchProfileCondition extends java.lang.Object implements 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.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String[]
hdrs
private java.util.Set<FetchItem>
need
private boolean
needBodyStructure
private boolean
needEnvelope
private boolean
needFlags
private boolean
needHeaders
private boolean
needMessage
private boolean
needRDate
private boolean
needSize
private boolean
needUID
-
Constructor Summary
Constructors Constructor Description FetchProfileCondition(FetchProfile fp, FetchItem[] fitems)
Create a FetchProfileCondition to determine if we need to fetch any of the information specified in the FetchProfile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
test(IMAPMessage m)
Return true if we NEED to fetch the requested information for the specified message.
-
-
-
Field Detail
-
needEnvelope
private boolean needEnvelope
-
needFlags
private boolean needFlags
-
needBodyStructure
private boolean needBodyStructure
-
needUID
private boolean needUID
-
needHeaders
private boolean needHeaders
-
needSize
private boolean needSize
-
needMessage
private boolean needMessage
-
needRDate
private boolean needRDate
-
hdrs
private java.lang.String[] hdrs
-
need
private java.util.Set<FetchItem> need
-
-
Constructor Detail
-
FetchProfileCondition
public FetchProfileCondition(FetchProfile fp, 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 Detail
-
test
public boolean test(IMAPMessage m)
Return true if we NEED to fetch the requested information for the specified message.- Specified by:
test
in interfaceUtility.Condition
-
-