de.malowa.state
Class PassBeforeGreylistState

java.lang.Object
  extended by de.malowa.state.State
      extended by de.malowa.state.PassBeforeGreylistState

public class PassBeforeGreylistState
extends State

The state of a greylisting tupel when it is not on the greylist. The mail will be accepted for delivery without being greylisted.

Author:
Marcel Lohmann

Constructor Summary
PassBeforeGreylistState(SMTPInformation info)
          Creates the state.
 
Method Summary
 void accept(StateVisitor visitor)
          Part of VisitorPattern.
 
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

PassBeforeGreylistState

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

Parameters:
info - of SMTP dialog
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)