org.apache.jsieve.commands
Class Discard

java.lang.Object
  extended by org.apache.jsieve.commands.AbstractCommand
      extended by org.apache.jsieve.commands.AbstractBodyCommand
          extended by org.apache.jsieve.commands.AbstractActionCommand
              extended by org.apache.jsieve.commands.Discard
All Implemented Interfaces:
ExecutableCommand

public class Discard
extends AbstractActionCommand

Class Discard implements the Discard Command as defined in RFC 3028, section 4.5.


Constructor Summary
Discard()
          Constructor for Discard.
 
Method Summary
protected  java.lang.Object executeBasic(MailAdapter mail, Arguments arguments, Block block, SieveContext context)
           Discard silently discards a Mail by cancelling the implicit keep as specified in RFC 3028, Section 4.5.
 
Methods inherited from class org.apache.jsieve.commands.AbstractActionCommand
updateState, validateSingleStringArguments, validateState
 
Methods inherited from class org.apache.jsieve.commands.AbstractCommand
execute, validateArguments, validateBlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Discard

public Discard()
Constructor for Discard.

Method Detail

executeBasic

protected java.lang.Object executeBasic(MailAdapter mail,
                                        Arguments arguments,
                                        Block block,
                                        SieveContext context)
                                 throws SieveException

Discard silently discards a Mail by cancelling the implicit keep as specified in RFC 3028, Section 4.5.

Specified by:
executeBasic in class AbstractCommand
context - SieveContext giving contextual information, not null
Returns:
Object
Throws:
SieveException
See Also:



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