|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.email.EmailContentPart rice.email.EmailHeadersPart
public class EmailHeadersPart
Abstract class which represents a part of an email with headers
Field Summary | |
---|---|
EmailContentPart |
content
The content of this part |
protected java.lang.ref.SoftReference |
headers
The data representing the haeders (transient as it is stored). |
EmailDataReference |
headersReference
A reference to the headers of this email part |
protected EmailData |
unstoredHeaders
A reference to the headers which is non-soft |
Fields inherited from class rice.email.EmailContentPart |
---|
size, storage |
Constructor Summary | |
---|---|
EmailHeadersPart(EmailData headers,
EmailContentPart content)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Returns whether or not this emailHeadersPart is equal to the given object |
void |
getContent(Continuation command)
Returns the content of this part |
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. |
void |
getHeaders(Continuation command)
Returns the headers of this EmailPart to the continuation |
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 headers 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 |
---|
protected transient java.lang.ref.SoftReference headers
public EmailDataReference headersReference
public EmailContentPart content
protected transient EmailData unstoredHeaders
Constructor Detail |
---|
public EmailHeadersPart(EmailData headers, EmailContentPart content)
headers
- The headers of this partcontent
- The content of this partMethod Detail |
---|
public void setStorage(StorageService storage)
setStorage
in class EmailContentPart
storage
- The local storage servicepublic void getContentHashReferences(java.util.Set set)
getContentHashReferences
in class EmailContentPart
set
- The set to add the PastContentHandles to.public void getHeaders(Continuation command)
commmand
- The command to run once the result has been
obtainedpublic void getContent(Continuation command)
getContent
in class EmailContentPart
command
- The command to run once the data is availablepublic void storeData(Continuation command)
storeData
in class EmailContentPart
command
- The command to run once the data has been stored, and
is returned the success or failure of this commandpublic int hashCode()
hashCode
in class EmailContentPart
public boolean equals(java.lang.Object o)
equals
in class EmailContentPart
o
- The object to compare to
|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |