ePOST API

rice.email
Class EmailMultiPart

java.lang.Object
  extended by rice.email.EmailContentPart
      extended by rice.email.EmailMultiPart
All Implemented Interfaces:
java.io.Serializable

public class EmailMultiPart
extends EmailContentPart

Represents the content of an email which is a multi-part entry

Author:
Alan Mislove
See Also:
Serialized Form

Field Summary
 EmailHeadersPart[] content
          The actual content of this email part
 java.lang.String type
          The string used to seperate the parts of this multipart
 
Fields inherited from class rice.email.EmailContentPart
size, storage
 
Constructor Summary
EmailMultiPart(EmailHeadersPart[] content, java.lang.String type)
          Constructor which takes in an Emailpart list
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns whether or not this EmailPart is equal to the object
 void getContent(Continuation command)
          Method which retrieves and returns this content's EmailData
 void getContentHashReferences(java.util.Set set)
          This method returns a list of all the handles stored in this part by adding them to the specified set.
 java.lang.String getType()
          Returns the seperator used for this multipart
 int hashCode()
          Returns the hashCode
 void setStorage(StorageService storage)
          Method which sets this part's storage service
 void storeData(Continuation command)
          Method which writes this part's content out to disk and retrieves a reference to it.
 
Methods inherited from class rice.email.EmailContentPart
getSize, setSize
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public java.lang.String type
The string used to seperate the parts of this multipart


content

public EmailHeadersPart[] content
The actual content of this email part

Constructor Detail

EmailMultiPart

public EmailMultiPart(EmailHeadersPart[] content,
                      java.lang.String type)
Constructor which takes in an Emailpart list

Method Detail

getType

public java.lang.String getType()
Returns the seperator used for this multipart

Returns:
The seperator for this multipart

getContentHashReferences

public void getContentHashReferences(java.util.Set set)
This method returns a list of all the handles stored in this part by adding them to the specified set.

Specified by:
getContentHashReferences in class EmailContentPart
Parameters:
set - The set to add the PastContentHandles to.

setStorage

public void setStorage(StorageService storage)
Method which sets this part's storage service

Overrides:
setStorage in class EmailContentPart
Parameters:
storage - The local storage service

storeData

public void storeData(Continuation command)
Method which writes this part's content out to disk and retrieves a reference to it.

Specified by:
storeData in class EmailContentPart
Parameters:
command - The command to run once the data has been stored, and is returned the success or failure of this command

getContent

public void getContent(Continuation command)
Method which retrieves and returns this content's EmailData

Specified by:
getContent in class EmailContentPart
Parameters:
command - The command to run once the data is available

hashCode

public int hashCode()
Returns the hashCode

Specified by:
hashCode in class EmailContentPart

equals

public boolean equals(java.lang.Object o)
Returns whether or not this EmailPart is equal to the object

Specified by:
equals in class EmailContentPart
Returns:
The equality of this and o

ePOST API

Copyright © 2001-2005 - Rice Pastry.