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

java.lang.Object
  extended by org.apache.geronimo.javamail.store.imap.connection.IMAPFetchDataItem
      extended by org.apache.geronimo.javamail.store.imap.connection.IMAPBodyStructure

public class IMAPBodyStructure
extends IMAPFetchDataItem


Field Summary
 int bodySize
           
 String contentDescription
           
 String contentID
           
 ContentDisposition disposition
           
 Map dispositionParameters
           
 List languages
           
 int lines
           
 String md5Hash
           
 ContentType mimeType
           
 IMAPBodyStructure nestedBody
           
 IMAPEnvelope nestedEnvelope
           
 IMAPBodyStructure[] parts
           
 String transferEncoding
           
 
Fields inherited from class org.apache.geronimo.javamail.store.imap.connection.IMAPFetchDataItem
BODY, BODYSTRUCTURE, ENVELOPE, FETCH, FLAGS, HEADER, INTERNALDATE, SIZE, TEXT, type, UID
 
Constructor Summary
IMAPBodyStructure(IMAPResponseTokenizer source)
           
 
Method Summary
 boolean isAttachedMessage()
          Test if this body structure represents an attached message.
 boolean isMultipart()
          Tests if a body structure is for a multipart body.
protected  void parseBodyStructure(IMAPResponseTokenizer source)
           
protected  void parseMessageExtensions(IMAPResponseTokenizer source)
          Parse common message extension information shared between single part and multi part messages.
protected  void parseMultipartBodyStructure(IMAPResponseTokenizer source)
           
protected  void parseSinglepartBodyStructure(IMAPResponseTokenizer source)
           
 
Methods inherited from class org.apache.geronimo.javamail.store.imap.connection.IMAPFetchDataItem
getType, isType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

IMAPBodyStructure

public IMAPBodyStructure(IMAPResponseTokenizer source)
                  throws MessagingException
Throws:
MessagingException
Method Detail

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.