org.apache.james.mailbox.util
Class FetchGroupImpl

java.lang.Object
  extended by org.apache.james.mailbox.util.FetchGroupImpl
All Implemented Interfaces:
MessageResult.FetchGroup

public class FetchGroupImpl
extends java.lang.Object
implements MessageResult.FetchGroup

Specifies a fetch group.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.james.mailbox.MessageResult.FetchGroup
MessageResult.FetchGroup.PartContentDescriptor
 
Field Summary
static MessageResult.FetchGroup BODY_CONTENT
           
static MessageResult.FetchGroup FULL_CONTENT
           
static MessageResult.FetchGroup HEADERS
           
static MessageResult.FetchGroup MINIMAL
           
 
Fields inherited from interface org.apache.james.mailbox.MessageResult.FetchGroup
MIME_CONTENT, MIME_DESCRIPTOR, MIME_HEADERS
 
Constructor Summary
FetchGroupImpl()
           
FetchGroupImpl(int content)
           
FetchGroupImpl(int content, java.util.Set<MessageResult.FetchGroup.PartContentDescriptor> partContentDescriptors)
           
 
Method Summary
 void addPartContent(MessageResult.MimePath path, int content)
          Adds content for the particular part.
 int content()
          Contents to be fetched.
 java.util.Set<MessageResult.FetchGroup.PartContentDescriptor> getPartContentDescriptors()
          Gets content descriptors for the parts to be fetched.
 void or(int content)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MINIMAL

public static final MessageResult.FetchGroup MINIMAL

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
Constructor Detail

FetchGroupImpl

public FetchGroupImpl()

FetchGroupImpl

public FetchGroupImpl(int content)

FetchGroupImpl

public FetchGroupImpl(int content,
                      java.util.Set<MessageResult.FetchGroup.PartContentDescriptor> partContentDescriptors)
Method Detail

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.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<MessageResult.FetchGroup.PartContentDescriptor> 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 null
content - bitwise content constant


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.