|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jsieve.tests.AbstractTest
org.apache.jsieve.tests.Size
public class Size
Class Size implements the Size Test as defined in RFC 3028, section 5.9.
| Constructor Summary | |
|---|---|
Size()
Constructor for Size. |
|
| Method Summary | |
|---|---|
protected boolean |
executeBasic(MailAdapter mail,
Arguments arguments,
SieveContext context)
Abstract method executeBasic invokes a Sieve Test. |
protected boolean |
test(MailAdapter mail,
java.lang.String comparator,
int size)
Method test. |
protected boolean |
testOver(MailAdapter mail,
int size)
Method testOver. |
protected boolean |
testUnder(MailAdapter mail,
int size)
Method testUnder. |
protected void |
validateArguments(Arguments arguments,
SieveContext context)
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 |
|---|
public Size()
| Method Detail |
|---|
protected boolean executeBasic(MailAdapter mail,
Arguments arguments,
SieveContext context)
throws SyntaxException,
SieveMailException
AbstractTest
executeBasic in class AbstractTestcontext - SieveContext giving contextual information, not
null
SyntaxException
SieveMailException
From RFC 3028, Section 5.9...
Syntax: size <"e;:over""e; / "e;:under"e;> <limit: number>
protected boolean test(MailAdapter mail,
java.lang.String comparator,
int size)
throws SieveMailException
mail - comparator - size -
SieveMailException
protected boolean testUnder(MailAdapter mail,
int size)
throws SieveMailException
mail - size -
SieveMailException
protected boolean testOver(MailAdapter mail,
int size)
throws SieveMailException
mail - size -
SieveMailException
protected void validateArguments(Arguments arguments,
SieveContext context)
throws SieveException
AbstractTest
validateArguments in class AbstractTestcontext - SieveContext giving comntextual information,
not null
SieveExceptionAbstractTest.validateArguments(Arguments,
SieveContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||