public final class FetchResponse extends Object implements ImapResponseMessage
| Modifier and Type | Class and Description |
|---|---|
static interface |
FetchResponse.BodyElement
BODY FETCH element content.
|
static interface |
FetchResponse.Envelope
ENVELOPE content.
|
static interface |
FetchResponse.Structure
Describes the message structure.
|
| Constructor and Description |
|---|
FetchResponse(int messageNumber,
javax.mail.Flags flags,
Long uid,
Long modSeq,
Date internalDate,
Long size,
FetchResponse.Envelope envelope,
FetchResponse.Structure body,
FetchResponse.Structure bodystructure,
List<FetchResponse.BodyElement> elements) |
| Modifier and Type | Method and Description |
|---|---|
FetchResponse.Structure |
getBody()
Gets the structure of this message.
|
FetchResponse.Structure |
getBodyStructure()
Gets the structure of this message.
|
List<FetchResponse.BodyElement> |
getElements()
TODO: replace
|
FetchResponse.Envelope |
getEnvelope()
Gets the envelope for the fetched message
|
javax.mail.Flags |
getFlags()
Gets the fetched flags.
|
Date |
getInternalDate()
Gets the internal date for the fetched message.
|
int |
getMessageNumber()
Gets the number of the message whose details have been fetched.
|
Long |
getModSeq()
Return the mod-sequence for the message or null if the
FETCH did not
include it |
Long |
getSize()
Gets the size for the fetched message.
|
Long |
getUid()
Gets the unique id for the fetched message.
|
public FetchResponse(int messageNumber,
javax.mail.Flags flags,
Long uid,
Long modSeq,
Date internalDate,
Long size,
FetchResponse.Envelope envelope,
FetchResponse.Structure body,
FetchResponse.Structure bodystructure,
List<FetchResponse.BodyElement> elements)
public FetchResponse.Structure getBody()
Structure, or null if the FETCH did not
include BODYpublic FetchResponse.Structure getBodyStructure()
Structure, or null if the FETCH did not
include BODYSTRUCTUREpublic int getMessageNumber()
public javax.mail.Flags getFlags()
Flags fetched, or null if the FETCH did not
include FLAGSpublic Long getUid()
FETCH did not include
UIDpublic Date getInternalDate()
FETCH did not
include INTERNALDATEpublic Long getSize()
FETCH did not include
SIZEpublic FetchResponse.Envelope getEnvelope()
FETCH did not include
ENVELOPEpublic List<FetchResponse.BodyElement> getElements()
List of BodyElement's, or null if the
FETCH did not include body elementspublic Long getModSeq()
FETCH did not
include itCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.