|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.email.Email
public class Email
Represents a notion of a message in the POST system. This class is designed to be a small representation of an Email, with pointers to all of the content.
Field Summary | |
---|---|
EmailMessagePart |
content
|
Constructor Summary | |
---|---|
Email(PostUserAddress sender,
PostEntityAddress[] recipients,
EmailMessagePart content)
Constructs an Email. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Determines equality on this email |
EmailMessagePart |
getContent()
Returns the header of this message. |
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. |
PostEntityAddress[] |
getRecipients()
Returns the recipient users of this message. |
PostUserAddress |
getSender()
Returns the sender of this message. |
int |
hashCode()
Returns the hashcode |
protected void |
setStorage(StorageService s)
Sets the storage service for the email. |
protected void |
storeData(Continuation command)
Stores the content of the Email into PAST and saves the references to the content in the email. |
java.lang.String |
toString()
Returns a string representing this email |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public EmailMessagePart content
Constructor Detail |
---|
public Email(PostUserAddress sender, PostEntityAddress[] recipients, EmailMessagePart content)
sender
- The address of the sender of the mail.recipients
- The recipients for this messagecontent
- The content of this messageMethod Detail |
---|
public PostUserAddress getSender()
public PostEntityAddress[] getRecipients()
public EmailMessagePart getContent()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The object to compare to
public java.lang.String toString()
toString
in class java.lang.Object
protected void setStorage(StorageService s)
s
- the StorageService the email is to useprotected void storeData(Continuation command)
command
- This command is called when the storage is done, with the
Boolean value of the success of the operation, or an exception is
passed to the command.public void getContentHashReferences(java.util.Set set)
set
- The set to add the PastContentHandles to.
|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |