org.apache.jsieve.commands
Class AbstractPrologCommand

java.lang.Object
  extended by org.apache.jsieve.commands.AbstractCommand
      extended by org.apache.jsieve.commands.AbstractPrologCommand
All Implemented Interfaces:
ExecutableCommand
Direct Known Subclasses:
Require

public abstract class AbstractPrologCommand
extends AbstractCommand

Abstract class AbstractPrologCommand defines the common state validation behavior for Prolog Commands. In RFC 3028 the only Prolog Command is 'requires', however, the specification may evolve.


Constructor Summary
AbstractPrologCommand()
          Constructor for AbstractPrologCommand.
 
Method Summary
protected  void validateState(SieveContext context)
           Method validateState() ensures, via the CommandStateManager, that a Prolog Command is permissible.
 
Methods inherited from class org.apache.jsieve.commands.AbstractCommand
execute, executeBasic, updateState, validateArguments, validateBlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPrologCommand

public AbstractPrologCommand()
Constructor for AbstractPrologCommand.

Method Detail

validateState

protected void validateState(SieveContext context)
                      throws CommandException

Method validateState() ensures, via the CommandStateManager, that a Prolog Command is permissible.

Also,

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


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