|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jsieve.SieveFactory
public class SieveFactory
SieveFactory is the primary invocation point for all Sieve operations. Theses are...
Constructor Summary | |
---|---|
SieveFactory(CommandManager commandManager,
ComparatorManager comparatorManager,
TestManager testManager,
org.apache.commons.logging.Log log)
Constructor for SieveFactory. |
Method Summary | |
---|---|
void |
evaluate(MailAdapter mail,
org.apache.jsieve.parser.generated.Node startNode)
Method evaluate evaluates an RFC 822 compliant mail message wrapped in a MailAdapter by visting each node of the parsed script beginning at the passed start node. |
void |
interpret(MailAdapter mail,
java.io.InputStream inputStream)
Method interpret parses a Sieve script and then evaluates the result against a mail. |
org.apache.jsieve.parser.generated.Node |
parse(java.io.InputStream inputStream)
Method parse parses a Sieve script into a hierarchy of parsed nodes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SieveFactory(CommandManager commandManager, ComparatorManager comparatorManager, TestManager testManager, org.apache.commons.logging.Log log)
Method Detail |
---|
public org.apache.jsieve.parser.generated.Node parse(java.io.InputStream inputStream) throws org.apache.jsieve.parser.generated.ParseException
inputStream
-
org.apache.jsieve.parser.generated.ParseException
public void evaluate(MailAdapter mail, org.apache.jsieve.parser.generated.Node startNode) throws SieveException
Method evaluate evaluates an RFC 822 compliant mail message wrapped in a MailAdapter by visting each node of the parsed script beginning at the passed start node. As evaluation proceeds a List of Actions is added to the MailAdapter.
At the start of evaluation an 'implicitKeep' state is set. This can be cancelled by a Command during evaluation. If 'implicitKeep' is still set at the end of evaluation, a Keep Action is added to the List of Actions. Finally, each Action in the List is executed in the order they were added.
mail
- startNode
-
SieveException
public void interpret(MailAdapter mail, java.io.InputStream inputStream) throws org.apache.jsieve.parser.generated.ParseException, SieveException
mail
- inputStream
-
org.apache.jsieve.parser.generated.ParseException
SieveException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |