de.malowa.state
Class PassWhileGreylistedState

java.lang.Object
  extended by de.malowa.state.State
      extended by de.malowa.state.OnGreylistState
          extended by de.malowa.state.PassWhileGreylistedState

public class PassWhileGreylistedState
extends OnGreylistState

The state of a greylisting tupel when it is on the greylist and the delay time has not passed. But because of some whitelisting rules it should pass. The mail may be accepted for delivery.

Author:
Marcel Lohmann

Constructor Summary
PassWhileGreylistedState(SMTPInformation info, MailHistory history)
          Creates the state.
 
Method Summary
 void accept(StateVisitor visitor)
          Part of VisitorPattern.
 
Methods inherited from class de.malowa.state.OnGreylistState
getMailHistory
 
Methods inherited from class de.malowa.state.State
getSMTPInformation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassWhileGreylistedState

public PassWhileGreylistedState(SMTPInformation info,
                                MailHistory history)
Creates the state. The info and history are saved for later reuse.

Parameters:
info - of SMTP dialog
history - statistics of past connection attempts
Method Detail

accept

public void accept(StateVisitor visitor)
Description copied from class: State
Part of VisitorPattern. Must be implemented in concrete class according to VisitorPattern. It calls the appropriate handle-method of the visitor based on the concrete state.

Specified by:
accept in class State
Parameters:
visitor - the visitor containing the callback functions
See Also:
State.accept(StateVisitor visitor)