de.malowa.state
Class BlockBeforeGreylistState

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

public class BlockBeforeGreylistState
extends State

The state of a greylisting tupel when it should be rejected due to some blacklist rule. The delivery attempt will be rejected.

Author:
Marcel Lohmann

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

BlockBeforeGreylistState

public BlockBeforeGreylistState(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)