org.apache.james.mailboxmanager.impl
Class FetchGroupImpl
java.lang.Object
org.apache.james.mailboxmanager.impl.FetchGroupImpl
- All Implemented Interfaces:
- MessageResult.FetchGroup
public class FetchGroupImpl
- extends java.lang.Object
- implements MessageResult.FetchGroup
Specifies a fetch group.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MINIMAL
public static final MessageResult.FetchGroup MINIMAL
SIZE
public static final MessageResult.FetchGroup SIZE
INTERNAL_DATE
public static final MessageResult.FetchGroup INTERNAL_DATE
FLAGS
public static final MessageResult.FetchGroup FLAGS
HEADERS
public static final MessageResult.FetchGroup HEADERS
FULL_CONTENT
public static final MessageResult.FetchGroup FULL_CONTENT
BODY_CONTENT
public static final MessageResult.FetchGroup BODY_CONTENT
FetchGroupImpl
public FetchGroupImpl()
FetchGroupImpl
public FetchGroupImpl(int content)
FetchGroupImpl
public FetchGroupImpl(int content,
java.util.Set partContentDescriptors)
content
public int content()
- Description copied from interface:
MessageResult.FetchGroup
- Contents to be fetched. Composed bitwise.
- Specified by:
content
in interface MessageResult.FetchGroup
- Returns:
- bitwise descripion
- See Also:
MessageResult.FetchGroup.MINIMAL
,
#MIME_MESSAGE
,
#KEY
,
MessageResult.FetchGroup.SIZE
,
MessageResult.FetchGroup.INTERNAL_DATE
,
MessageResult.FetchGroup.FLAGS
,
MessageResult.FetchGroup.HEADERS
,
MessageResult.FetchGroup.FULL_CONTENT
,
MessageResult.FetchGroup.BODY_CONTENT
,
MessageResult.FetchGroup.MIME_CONTENT
or
public void or(int content)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getPartContentDescriptors
public java.util.Set getPartContentDescriptors()
- Gets content descriptors for the parts to be fetched.
- Specified by:
getPartContentDescriptors
in interface MessageResult.FetchGroup
- Returns:
Set
of FetchGroup.PartContentDescriptor
,
possibly null
addPartContent
public void addPartContent(MessageResult.MimePath path,
int content)
- Adds content for the particular part.
- Parameters:
path
- MimePath
, not nullcontent
- bitwise content constant
Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.