|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.malowa.greylister.ClientTask
public class ClientTask
The ClientTask is a task which will be run if a WorkerThread is
ready to handle this task. The function of the task is to read from the
Postfix socket, which client wants to deliver an email. On this information
it will determine what to do. This can be ACCEPT, DEFER or BLOCK the email
and the result will be communicated back to the Postfix daemon via the
Postfix socket. The ClientTask uses the RuleEvaluator to determine
the appropriate action.
| Constructor Summary | |
|---|---|
ClientTask(java.net.Socket socket)
Constructor to create a new task which will be run later on. |
|
| Method Summary | |
|---|---|
void |
handleBlockBeforeGreylist(BlockBeforeGreylistState visitee)
Callback function when the delivery attempt should be rejected as it is on a calculated blacklist. |
void |
handleNotOnGreylist(NotOnGreylistState visitee)
Callback function when the delivery attempt should be deferred as it has not been seen before. |
void |
handleOnWhitelist(OnWhitelistState visitee)
Callback function when the delivery attempt should be accepted as it is on the internal whitelist. |
void |
handlePassBeforeGreylist(PassBeforeGreylistState visitee)
Callback function when the delivery attempt should be accepted as it is on a calculated whitelist. |
void |
handlePassedGreylist(PassedGreylistState visitee)
Callback function when the delivery attempt should be accepted as it has passed the greylisting. |
void |
handlePassWhileGreylisted(PassWhileGreylistedState visitee)
Callback function when the delivery attempt should be accepted as it is on a calculated whitelist. |
void |
handleStillDelayed(StillDelayedState visitee)
Callback function when the delivery attempt should be deferred again as its delay time has not passed, yet. |
void |
run()
The method is executed when the task will be executed and run. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientTask(java.net.Socket socket)
socket - to communicate with the Postfix daemon| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablepublic void handleNotOnGreylist(NotOnGreylistState visitee)
StateVisitor
handleNotOnGreylist in interface StateVisitorvisitee - the state contains all information of the delivery attempt.StateVisitor.handleNotOnGreylist(de.malowa.state.NotOnGreylistState)public void handleOnWhitelist(OnWhitelistState visitee)
StateVisitor
handleOnWhitelist in interface StateVisitorvisitee - the state contains all information of the delivery attempt.StateVisitor.handleOnWhitelist(de.malowa.state.OnWhitelistState)public void handlePassedGreylist(PassedGreylistState visitee)
StateVisitor
handlePassedGreylist in interface StateVisitorvisitee - the state contains all information of the delivery attempt.StateVisitor.handlePassedGreylist(de.malowa.state.PassedGreylistState)public void handleStillDelayed(StillDelayedState visitee)
StateVisitor
handleStillDelayed in interface StateVisitorvisitee - the state contains all information of the delivery attempt.StateVisitor.handleStillDelayed(de.malowa.state.StillDelayedState)public void handlePassBeforeGreylist(PassBeforeGreylistState visitee)
StateVisitor
handlePassBeforeGreylist in interface StateVisitorvisitee - the state contains all information of the delivery attempt.StateVisitor.handlePassBeforeGreylist(de.malowa.state.PassBeforeGreylistState)public void handlePassWhileGreylisted(PassWhileGreylistedState visitee)
StateVisitor
handlePassWhileGreylisted in interface StateVisitorvisitee - the state contains all information of the delivery attempt.StateVisitor.handlePassWhileGreylisted(de.malowa.state.PassWhileGreylistedState)public void handleBlockBeforeGreylist(BlockBeforeGreylistState visitee)
StateVisitor
handleBlockBeforeGreylist in interface StateVisitorvisitee - the state contains all information of the delivery attempt.StateVisitor.handleBlockBeforeGreylist(de.malowa.state.BlockBeforeGreylistState)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||