org.apache.geronimo.javamail.store.imap.connection
Class IMAPFetchDataItem

java.lang.Object
  extended by org.apache.geronimo.javamail.store.imap.connection.IMAPFetchDataItem
Direct Known Subclasses:
IMAPBodyStructure, IMAPEnvelope, IMAPFetchBodyPart, IMAPFlags, IMAPInternalDate, IMAPMessageSize, IMAPUid

public class IMAPFetchDataItem
extends Object


Field Summary
static int BODY
           
static int BODYSTRUCTURE
           
static int ENVELOPE
           
static int FETCH
           
static int FLAGS
           
static int HEADER
           
static int INTERNALDATE
           
static int SIZE
           
static int TEXT
           
protected  int type
           
static int UID
           
 
Constructor Summary
IMAPFetchDataItem(int type)
           
 
Method Summary
 int getType()
          Get the type of the FetchResponse.
 boolean isType(int t)
          Test if this fetch response is of the correct type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FETCH

public static final int FETCH
See Also:
Constant Field Values

ENVELOPE

public static final int ENVELOPE
See Also:
Constant Field Values

BODY

public static final int BODY
See Also:
Constant Field Values

BODYSTRUCTURE

public static final int BODYSTRUCTURE
See Also:
Constant Field Values

INTERNALDATE

public static final int INTERNALDATE
See Also:
Constant Field Values

SIZE

public static final int SIZE
See Also:
Constant Field Values

UID

public static final int UID
See Also:
Constant Field Values

TEXT

public static final int TEXT
See Also:
Constant Field Values

HEADER

public static final int HEADER
See Also:
Constant Field Values

FLAGS

public static final int FLAGS
See Also:
Constant Field Values

type

protected int type
Constructor Detail

IMAPFetchDataItem

public IMAPFetchDataItem(int type)
Method Detail

getType

public int getType()
Get the type of the FetchResponse.

Returns:
The type indicator.

isType

public boolean isType(int t)
Test if this fetch response is of the correct type.

Parameters:
t - The type to test against.
Returns:
True if the Fetch response contains the requested type information.


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.