public class MailTransactionImpl extends Object implements MailTransaction
Modifier and Type | Field and Description |
---|---|
String |
from |
org.subethamail.smtp.MessageContext |
messageContext |
java.util.List<RecipientContext> |
recipientContexts |
Constructor and Description |
---|
MailTransactionImpl(org.subethamail.smtp.MessageContext messageContext) |
Modifier and Type | Method and Description |
---|---|
void |
addDestinationForRecipient(Recipient recipient,
Destination destination) |
java.util.List<RecipientContext> |
getAcceptedRecipientContexts()
accepted recipients
|
Object |
getAttribute(String name) |
MailData |
getData()
it resets the stream if necessary before returning it
|
String |
getFrom()
Returns the accepted reverse-path supplied in the MAIL SMTP command.
|
org.subethamail.smtp.MessageContext |
getMessageContext() |
java.net.InetAddress |
getRemoteInetAddress()
convenience function, a better place for this would be
MessageContext |
void |
replaceData(MailData mailData)
filters shouldn't call this method, instead they should simply wrap the
MailData object they receive and pass it to the next element in
the chain. |
void |
setAttribute(String name,
Object value) |
void |
setData(MailData data) |
public final org.subethamail.smtp.MessageContext messageContext
public String from
public java.util.List<RecipientContext> recipientContexts
public MailTransactionImpl(org.subethamail.smtp.MessageContext messageContext)
public MailData getData()
getData
in interface MailTransaction
public void setData(MailData data)
public void replaceData(MailData mailData)
MailTransaction
MailData
object they receive and pass it to the next element in
the chain.replaceData
in interface MailTransaction
public org.subethamail.smtp.MessageContext getMessageContext()
getMessageContext
in interface MailTransaction
public String getFrom()
MailTransaction
getFrom
in interface MailTransaction
public java.util.List<RecipientContext> getAcceptedRecipientContexts()
MailTransaction
getAcceptedRecipientContexts
in interface MailTransaction
public java.net.InetAddress getRemoteInetAddress()
MailTransaction
MessageContext
getRemoteInetAddress
in interface MailTransaction
public void setAttribute(String name, Object value)
setAttribute
in interface MailTransaction
public Object getAttribute(String name)
getAttribute
in interface MailTransaction
public void addDestinationForRecipient(Recipient recipient, Destination destination)