de.malowa.state
Class NotOnGreylistState

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

public class NotOnGreylistState
extends State

The state of a greylisting tupel when it is not on the whitelist or blacklist. The mail will not be accepted for delivery. A new entry in the greylist database should be created.

Author:
Marcel Lohmann

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

NotOnGreylistState

public NotOnGreylistState(SMTPInformation info)
Creates the state. The info is 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)