org.apache.jsieve
Interface ExecutableCommand

All Known Implementing Classes:
AbstractActionCommand, AbstractBodyCommand, AbstractCommand, AbstractConditionalCommand, AbstractControlCommand, AbstractPrologCommand, Discard, Else, Elsif, FileInto, If, Keep, Log, Redirect, Reject, Require, Stop

public interface ExecutableCommand

Interface ExecutableCommand defines the method signatures for Sieve Commands.


Method Summary
 java.lang.Object execute(MailAdapter mail, Arguments arguments, Block block, SieveContext context)
          Method execute executes a Sieve Command.
 

Method Detail

execute

java.lang.Object execute(MailAdapter mail,
                         Arguments arguments,
                         Block block,
                         SieveContext context)
                         throws SieveException
Method execute executes a Sieve Command.

Parameters:
mail - - The mail against which the Command is executed.
arguments - - The Command arguments
block - - An optional Block to be evaluated
context - SieveContext containing contextual information, not null
Returns:
Object - The result of evaluating the Command
Throws:
SieveException


Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.