org.apache.jsieve.tests.optional
Class Body

java.lang.Object
  extended by org.apache.jsieve.tests.AbstractTest
      extended by org.apache.jsieve.tests.optional.Body
All Implemented Interfaces:
ExecutableTest

public class Body
extends AbstractTest

Implementation of body extension defined in RFC5173.


Constructor Summary
Body()
           
 
Method Summary
protected  boolean executeBasic(MailAdapter mail, Arguments args, SieveContext ctx)
          Abstract method executeBasic invokes a Sieve Test.
protected  void validateArguments(Arguments args, SieveContext ctx)
          Framework method validateArguments is invoked before a Sieve Test is executed to validate its arguments.
 
Methods inherited from class org.apache.jsieve.tests.AbstractTest
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Body

public Body()
Method Detail

validateArguments

protected void validateArguments(Arguments args,
                                 SieveContext ctx)
                          throws SieveException
Description copied from class: AbstractTest
Framework method validateArguments is invoked before a Sieve Test 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 AbstractTest
ctx - SieveContext giving comntextual information, not null
Throws:
SieveException

executeBasic

protected boolean executeBasic(MailAdapter mail,
                               Arguments args,
                               SieveContext ctx)
                        throws SieveException
Description copied from class: AbstractTest
Abstract method executeBasic invokes a Sieve Test.

Specified by:
executeBasic in class AbstractTest
ctx - SieveContext giving contextual information, not null
Returns:
boolean
Throws:
SieveException


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