public class MovingMessage
extends java.lang.Object
acquire()
.
As soon as it has finished processing, that object must call
releaseContent()
. For example usage, see foedus.processing.OutgoingImpl
.
Constructor and Description |
---|
MovingMessage(Workspace workspace) |
Modifier and Type | Method and Description |
---|---|
void |
acquire() |
void |
addRecipient(MailAddress s) |
java.io.Reader |
getContent() |
javax.mail.internet.MimeMessage |
getMessage() |
java.util.Iterator |
getRecipientIterator() |
MailAddress |
getReturnPath() |
java.util.List |
getToAddresses() |
void |
readDotTerminatedContent(java.io.BufferedReader in)
Reads the contents of the stream until
<CRLF>.<CRLF> is encountered.
|
void |
releaseContent() |
void |
removeRecipient(MailAddress s) |
void |
setReturnPath(MailAddress fromAddress) |
public MovingMessage(Workspace workspace)
public java.util.List getToAddresses()
public javax.mail.internet.MimeMessage getMessage()
public java.io.Reader getContent() throws java.io.IOException
java.io.IOException
public void acquire()
public void releaseContent()
public MailAddress getReturnPath()
public void setReturnPath(MailAddress fromAddress)
public void addRecipient(MailAddress s)
public void removeRecipient(MailAddress s)
public java.util.Iterator getRecipientIterator()
public void readDotTerminatedContent(java.io.BufferedReader in) throws java.io.IOException
java.io.IOException