org.apache.james.protocols.smtp
Interface MailEnvelope

All Known Implementing Classes:
MailEnvelopeImpl

public interface MailEnvelope

The MailEnvelope of a SMTP-Transaction


Method Summary
 java.io.InputStream getMessageInputStream()
          Return the InputStream of the message
 java.io.OutputStream getMessageOutputStream()
          Return the OutputStream of the message
 java.util.List<org.apache.mailet.MailAddress> getRecipients()
          Return the recipients which where supplied in the RCPT TO: command
 org.apache.mailet.MailAddress getSender()
          Return the sender of the mail which was supplied int the MAIL FROM: command.
 int getSize()
          Return the size of the message.
 

Method Detail

getSize

int getSize()
Return the size of the message. If the message is "empty" it will return -1

Returns:
size

getRecipients

java.util.List<org.apache.mailet.MailAddress> getRecipients()
Return the recipients which where supplied in the RCPT TO: command

Returns:
recipients

getSender

org.apache.mailet.MailAddress getSender()
Return the sender of the mail which was supplied int the MAIL FROM: command. If its a "null" sender, null will get returned

Returns:
sender

getMessageOutputStream

java.io.OutputStream getMessageOutputStream()
                                            throws java.lang.Exception
Return the OutputStream of the message

Returns:
out
Throws:
java.lang.Exception

getMessageInputStream

java.io.InputStream getMessageInputStream()
                                          throws java.lang.Exception
Return the InputStream of the message

Returns:
in
Throws:
java.lang.Exception


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.