com.openexchange.messaging
Interface MultipartContent

All Superinterfaces:
MessagingContent
All Known Implementing Classes:
MessagingPartArrayContent

public interface MultipartContent
extends MessagingContent

MultipartContent - A multipart content.

Since:
Open-Xchange v6.16
Author:
Francisco Laguna, Thorben Betten

Method Summary
 MessagingBodyPart get(int index)
          Get the specified part.
 int getCount()
          Gets the number of enclosed parts.
 java.lang.String getSubType()
          Gets this multipart's sub-type; e.g "mixed".
 

Method Detail

getSubType

java.lang.String getSubType()
Gets this multipart's sub-type; e.g "mixed".

Returns:
The sub-type

getCount

int getCount()
             throws MessagingException
Gets the number of enclosed parts.

Returns:
The number of enclosed parts
Throws:
MessagingException - If the number of enclosed parts cannot be determined

get

MessagingBodyPart get(int index)
                      throws MessagingException
Get the specified part. Parts are numbered starting at zero.

Parameters:
index - The zero-based index
Returns:
The indexed part
Throws:
MessagingException - If part at index position cannot be returned