de.malowa.state
Class PassedGreylistState

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

public class PassedGreylistState
extends OnGreylistState

The state of a greylisting tupel when it is on the greylist and the delay time has passed. The mail may be accepted for delivery.

Author:
Marcel Lohmann

Constructor Summary
PassedGreylistState(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

PassedGreylistState

public PassedGreylistState(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 final 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)