public final class DataRecipientFilterAdapter extends Object implements Filter
DataRecipientFilter to the Filter interface| Constructor and Description |
|---|
DataRecipientFilterAdapter(DataRecipientFilter filter,
MailTransaction mailTransaction) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
data(MailData data) |
void |
done()
it is always called, even if some other filter failed or no mail was
delivered in this mail transaction
|
void |
from(ReversePath from) |
void |
recipient(RecipientContext recipientContext)
Processes an accepted recipient.
|
void |
setChain(FilterChain chain)
an implementation must store the supplied view to the next filter in the
chain.
|
FilterReply |
verifyRecipient(RecipientContext recipientContext)
Decides if a recipient should be accepted.
|
public DataRecipientFilterAdapter(DataRecipientFilter filter, MailTransaction mailTransaction)
public void setChain(FilterChain chain)
FilterFilterChain must call the latter method.public void begin()
begin in interface FilterBasepublic void from(ReversePath from) throws RejectExceptionExt
from in interface FilterBaseRejectExceptionExtpublic FilterReply verifyRecipient(RecipientContext recipientContext) throws RejectExceptionExt
FilterBaseUnknownRecipientDestination; otherwise it will be rejected as an
unknown user.verifyRecipient in interface FilterBaseRejectExceptionExtpublic void recipient(RecipientContext recipientContext) throws RejectExceptionExt
FilterBaseFilterBase.verifyRecipient(mireka.filter.RecipientContext).recipient in interface FilterBaseRejectExceptionExtpublic void data(MailData data) throws RejectExceptionExt, org.subethamail.smtp.TooMuchDataException, java.io.IOException
data in interface FilterBaseRejectExceptionExtorg.subethamail.smtp.TooMuchDataExceptionjava.io.IOExceptionpublic void done()
FilterBasedone in interface FilterBase