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()
MailEnvelope
getSize
in interface MailEnvelope
MailEnvelope.getSize()
public List<MailAddress> getRecipients()
MailEnvelope
getRecipients
in interface MailEnvelope
MailEnvelope.getRecipients()
public MailAddress getSender()
MailEnvelope
getSender
in interface MailEnvelope
MailEnvelope.getSender()
public void setRecipients(List<MailAddress> recipientCollection)
recipientCollection
- public void setSender(MailAddress sender)
sender
- public OutputStream getMessageOutputStream()
MailEnvelope
getMessageOutputStream
in interface MailEnvelope
MailEnvelope.getMessageOutputStream()
public InputStream getMessageInputStream()
MailEnvelope
getMessageInputStream
in interface MailEnvelope
MailEnvelope.getMessageInputStream()
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.