org.apache.jsieve.commands.optional
Class Reject

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.optional.Reject
All Implemented Interfaces:
ExecutableCommand

public class Reject
extends AbstractActionCommand

Class Reject implements the Reject Command as defined in RFC 3028, section 4.1.


Constructor Summary
Reject()
          Constructor for Reject.
 
Method Summary
protected  java.lang.Object executeBasic(MailAdapter mail, Arguments arguments, Block block, SieveContext context)
           Add an ActionReject to the List of Actions to be performed.
protected  void updateState(SieveContext context)
           Method updateState() updates the CommandStateManager to indicate an Action Command has been processed and to cancel implicit keep.
protected  void validateArguments(Arguments arguments, SieveContext context)
          Framework method validateArguments is invoked before a Sieve Command is executed to validate its arguments.
protected  void validateState(SieveContext context)
           Method validateState() validates via the CommandStateManager that an Action Command is legal at this time.
 
Methods inherited from class org.apache.jsieve.commands.AbstractActionCommand
validateSingleStringArguments
 
Methods inherited from class org.apache.jsieve.commands.AbstractCommand
execute, validateBlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reject

public Reject()
Constructor for Reject.

Method Detail

executeBasic

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

Add an ActionReject to the List of Actions to be performed.

Also,

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


validateState

protected void validateState(SieveContext context)
                      throws CommandException
Description copied from class: AbstractActionCommand

Method validateState() validates via the CommandStateManager that an Action Command is legal at this time.

Also,

Overrides:
validateState in class AbstractActionCommand
Parameters:
context - SieveContext giving contextual information, not null
Throws:
CommandException
See Also:
AbstractCommand.validateState(SieveContext)

updateState

protected void updateState(SieveContext context)
Description copied from class: AbstractActionCommand

Method updateState() updates the CommandStateManager to indicate an Action Command has been processed and to cancel implicit keep.

And also

Overrides:
updateState in class AbstractActionCommand
Parameters:
context - TODO
See Also:
AbstractCommand.updateState(SieveContext)

validateArguments

protected void validateArguments(Arguments arguments,
                                 SieveContext context)
                          throws SieveException
Description copied from class: AbstractCommand
Framework method validateArguments is invoked before a Sieve Command is executed to validate its arguments. Subclass methods are expected to override or extend this method to perform their own validation as appropriate.

Overrides:
validateArguments in class AbstractCommand
context - SieveContext giving contextual information, not null
Throws:
SieveException
See Also:
AbstractCommand.validateArguments(Arguments, SieveContext)


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