org.apache.jsieve.commands.optional
Class FileInto

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

public class FileInto
extends AbstractActionCommand

Class FileInto implements the FileInto Command as defined in RFC 3028, section 4.2.


Constructor Summary
FileInto()
          Constructor for Require.
 
Method Summary
protected  java.lang.Object executeBasic(MailAdapter mail, Arguments arguments, Block block, SieveContext context)
           Add an ActionFileInto to the List of Actions to be performed passing the sole StringList argument as the destination.
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

FileInto

public FileInto()
Constructor for Require.

Method Detail

executeBasic

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

Add an ActionFileInto to the List of Actions to be performed passing the sole StringList argument as the destination. RFC 3028 mandates that there should be only one FileInto per destination. If this is a duplicate, this Command is silently ignored.

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