Package mireka.filter
Interface FilterChain
-
public interface FilterChain
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbegin()voiddata(MailData data)A typical implementation of this method would follow the following pattern: 1. examine the complete mail data or only its headers 2.voidfrom(ReversePath from)voidrecipient(RecipientContext recipientContext)FilterReplyverifyRecipient(RecipientContext recipientContext)
-
-
-
Method Detail
-
begin
void begin()
-
from
void from(ReversePath from) throws RejectExceptionExt
- Throws:
RejectExceptionExt
-
verifyRecipient
FilterReply verifyRecipient(RecipientContext recipientContext) throws RejectExceptionExt
- Throws:
RejectExceptionExt
-
recipient
void recipient(RecipientContext recipientContext) throws RejectExceptionExt
- Throws:
RejectExceptionExt
-
data
void data(MailData data) throws RejectExceptionExt, org.subethamail.smtp.TooMuchDataException, java.io.IOException
A typical implementation of this method would follow the following pattern: 1. examine the complete mail data or only its headers 2. optionally wrap the data object for example to prepend trace data 3. invoke the next entity in the chainThe passed
MailDataobject will become the return value ofMailTransaction.getData()until another filter replaces it possibly by wrapping it- Throws:
RejectExceptionExtorg.subethamail.smtp.TooMuchDataExceptionjava.io.IOException
-
-