public class MailEnvelopeImpl extends Object implements MailEnvelope
| Constructor and Description |
|---|
MailEnvelopeImpl() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getMessageInputStream()
Return the InputStream of the message
|
OutputStream |
getMessageOutputStream()
Return the OutputStream of the message
TODO: Think about how to remove this!
|
List<MailAddress> |
getRecipients()
Return the recipients which where supplied in the RCPT TO: command
|
MailAddress |
getSender()
Return the sender of the mail which was supplied int the MAIL FROM:
command.
|
long |
getSize()
Return the size of the message.
|
void |
setRecipients(List<MailAddress> recipientCollection)
Set the recipients of the mail
|
void |
setSender(MailAddress sender)
Set the sender of the mail
|
public long getSize()
MailEnvelopegetSize in interface MailEnvelopeMailEnvelope.getSize()public List<MailAddress> getRecipients()
MailEnvelopegetRecipients in interface MailEnvelopeMailEnvelope.getRecipients()public MailAddress getSender()
MailEnvelopegetSender in interface MailEnvelopeMailEnvelope.getSender()public void setRecipients(List<MailAddress> recipientCollection)
recipientCollection - public void setSender(MailAddress sender)
sender - public OutputStream getMessageOutputStream()
MailEnvelopegetMessageOutputStream in interface MailEnvelopeMailEnvelope.getMessageOutputStream()public InputStream getMessageInputStream()
MailEnvelopegetMessageInputStream in interface MailEnvelopeMailEnvelope.getMessageInputStream()Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.