org.apache.geronimo.javamail.store.imap.connection
Class IMAPBodyStructure
java.lang.Object
org.apache.geronimo.javamail.store.imap.connection.IMAPFetchDataItem
org.apache.geronimo.javamail.store.imap.connection.IMAPBodyStructure
public class IMAPBodyStructure
- extends IMAPFetchDataItem
Fields inherited from class org.apache.geronimo.javamail.store.imap.connection.IMAPFetchDataItem |
BODY, BODYSTRUCTURE, ENVELOPE, FETCH, FLAGS, HEADER, INTERNALDATE, SIZE, TEXT, type, UID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mimeType
public ContentType mimeType
disposition
public ContentDisposition disposition
contentID
public String contentID
contentDescription
public String contentDescription
transferEncoding
public String transferEncoding
bodySize
public int bodySize
lines
public int lines
parts
public IMAPBodyStructure[] parts
dispositionParameters
public Map dispositionParameters
languages
public List languages
md5Hash
public String md5Hash
nestedEnvelope
public IMAPEnvelope nestedEnvelope
nestedBody
public IMAPBodyStructure nestedBody
IMAPBodyStructure
public IMAPBodyStructure(IMAPResponseTokenizer source)
throws MessagingException
- Throws:
MessagingException
parseBodyStructure
protected void parseBodyStructure(IMAPResponseTokenizer source)
throws MessagingException
- Throws:
MessagingException
parseMultipartBodyStructure
protected void parseMultipartBodyStructure(IMAPResponseTokenizer source)
throws MessagingException
- Throws:
MessagingException
parseSinglepartBodyStructure
protected void parseSinglepartBodyStructure(IMAPResponseTokenizer source)
throws MessagingException
- Throws:
MessagingException
parseMessageExtensions
protected void parseMessageExtensions(IMAPResponseTokenizer source)
throws MessagingException
- Parse common message extension information shared between
single part and multi part messages.
- Parameters:
source
- The source tokenizer..
- Throws:
MessagingException
isMultipart
public boolean isMultipart()
- Tests if a body structure is for a multipart body.
- Returns:
- true if this is a multipart body part, false for a single part.
isAttachedMessage
public boolean isAttachedMessage()
- Test if this body structure represents an attached message. If it's a
message, this will be a single part of MIME type message/rfc822.
- Returns:
- True if this is a nested message type, false for either a multipart or
a single part of another type.
Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.