org.apache.jsieve.commands
Class Redirect

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

public class Redirect
extends AbstractActionCommand

Class Redirect implements the Redirect Command as defined in RFC 3028, section 4.3.


Constructor Summary
Redirect()
          Constructor for Redirect.
 
Method Summary
protected  java.lang.Object executeBasic(MailAdapter mail, Arguments arguments, Block block, SieveContext context)
           Add an ActionRedirect to the List of Actions to be performed passing the sole StringList argument as the recipient.
protected  void validateArguments(Arguments arguments, SieveContext context)
          Framework method validateArguments is invoked before a Sieve Command is executed to validate its arguments.
 
Methods inherited from class org.apache.jsieve.commands.AbstractActionCommand
updateState, validateSingleStringArguments, validateState
 
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

Redirect

public Redirect()
Constructor for Redirect.

Method Detail

executeBasic

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

Add an ActionRedirect to the List of Actions to be performed passing the sole StringList argument as the recipient.

Also,

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


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 © 2004-2009 The Apache Software Foundation. All Rights Reserved.