|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.malowa.greylister.Greylister
public class Greylister
The Greylister
is the interface to the database layer which
holds and stores all information of the current email delivery attempt. It is
able to determines the current state in which the current delivery attempt is
in. It also can transform the state to the next state and store that
information in the database.
Constructor Summary | |
---|---|
Greylister(SMTPInformation info)
Constructs a new interface to the database layer. |
Method Summary | |
---|---|
State |
getState()
Returns the state the current delivery attempt is in. |
void |
handleBlockBeforeGreylist(BlockBeforeGreylistState blockBeforeGreylistState)
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 |
transitionToNextState()
Based on the current state the state will be transformed to the next state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Greylister(SMTPInformation info)
info
- information from SMTP connection to determine the current
state of the current delivery attempt.Method Detail |
---|
public State getState()
transitionToNextState()
is called.
public final void handleBlockBeforeGreylist(BlockBeforeGreylistState blockBeforeGreylistState)
StateVisitor
handleBlockBeforeGreylist
in interface StateVisitor
blockBeforeGreylistState
- the state contains all information of the delivery attempt.StateVisitor.handleBlockBeforeGreylist(de.malowa.state.BlockBeforeGreylistState)
public final void handleNotOnGreylist(NotOnGreylistState visitee)
StateVisitor
handleNotOnGreylist
in interface StateVisitor
visitee
- the state contains all information of the delivery attempt.StateVisitor.handleNotOnGreylist(de.malowa.state.NotOnGreylistState)
public final void handleOnWhitelist(OnWhitelistState visitee)
StateVisitor
handleOnWhitelist
in interface StateVisitor
visitee
- the state contains all information of the delivery attempt.StateVisitor.handleOnWhitelist(de.malowa.state.OnWhitelistState)
public final void handlePassBeforeGreylist(PassBeforeGreylistState visitee)
StateVisitor
handlePassBeforeGreylist
in interface StateVisitor
visitee
- the state contains all information of the delivery attempt.StateVisitor.handlePassBeforeGreylist(de.malowa.state.PassBeforeGreylistState)
public final void handlePassedGreylist(PassedGreylistState visitee)
StateVisitor
handlePassedGreylist
in interface StateVisitor
visitee
- the state contains all information of the delivery attempt.StateVisitor.handlePassedGreylist(de.malowa.state.PassedGreylistState)
public final void handlePassWhileGreylisted(PassWhileGreylistedState visitee)
StateVisitor
handlePassWhileGreylisted
in interface StateVisitor
visitee
- the state contains all information of the delivery attempt.StateVisitor.handlePassWhileGreylisted(de.malowa.state.PassWhileGreylistedState)
public final void handleStillDelayed(StillDelayedState visitee)
StateVisitor
handleStillDelayed
in interface StateVisitor
visitee
- the state contains all information of the delivery attempt.StateVisitor.handleStillDelayed(de.malowa.state.StillDelayedState)
public final void transitionToNextState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |