org.apache.jsieve.util.check
Class ScriptChecker
java.lang.Object
org.apache.jsieve.util.check.ScriptChecker
public class ScriptChecker
- extends java.lang.Object
Checks a sieve
script by executing it against a given mail and
reporting the results.
Method Summary |
ScriptChecker.Results |
check(java.io.File message,
java.io.File script)
Checks the sieve script contained in the given file by
executing it against the given message. |
ScriptChecker.Results |
check(java.io.InputStream message,
java.io.InputStream script)
Checks the sieve script contained in the given file by
executing it against the given message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptChecker
public ScriptChecker()
check
public ScriptChecker.Results check(java.io.File message,
java.io.File script)
throws java.io.IOException,
javax.mail.MessagingException
- Checks the
sieve
script contained in the given file by
executing it against the given message.
- Parameters:
message
- File
containing the mail message to be fed to
the script, not nullscript
- File
containing the script to be checked
- Returns:
Results
of that execution
- Throws:
java.io.IOException
MessageException
javax.mail.MessagingException
check
public ScriptChecker.Results check(java.io.InputStream message,
java.io.InputStream script)
throws java.io.IOException,
javax.mail.MessagingException
- Checks the
sieve
script contained in the given file by
executing it against the given message.
- Parameters:
script
- InputStream
, not null
- Returns:
Results
of the check, not null
- Throws:
java.io.IOException
javax.mail.MessagingException
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.