|
ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.email.EmailContentPart
public abstract class EmailContentPart
Represents the content of an email
| Field Summary | |
|---|---|
protected int |
size
The size of this part, in bytes |
protected StorageService |
storage
The local storage service |
| Constructor Summary | |
|---|---|
EmailContentPart(int size)
Constructor which takes in an EmailData |
|
| Method Summary | |
|---|---|
abstract boolean |
equals(java.lang.Object o)
Overridden to enforce subclasses have a valid equals |
abstract void |
getContent(Continuation command)
Method which retrieves and returns this content's EmailData |
abstract 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. |
int |
getSize()
Returns the size of this part, in bytes |
abstract int |
hashCode()
Overridden to enforce hashCode(); |
protected void |
setSize(int size)
Sets the size of this part, in bytes |
void |
setStorage(StorageService storage)
Method which sets this part's storage service |
abstract void |
storeData(Continuation command)
Method which writes this part's content out to disk and retrieves a reference to it. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int size
protected transient StorageService storage
| Constructor Detail |
|---|
public EmailContentPart(int size)
| Method Detail |
|---|
protected void setSize(int size)
size - The size of this partpublic int getSize()
public void setStorage(StorageService storage)
storage - The local storage servicepublic abstract void storeData(Continuation command)
command - The command to run once the data has been stored, and
is returned the success or failure of this commandpublic abstract void getContent(Continuation command)
command - The command to run once the data is availablepublic abstract boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic abstract int hashCode()
hashCode in class java.lang.Objectpublic abstract 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 | |||||||||