|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jsieve.util.check.ScriptChecker.Results
public static final class ScriptChecker.Results
Contains results of script execution.
Constructor Summary | |
---|---|
ScriptChecker.Results(java.lang.Exception ex)
|
|
ScriptChecker.Results(java.util.List actions)
|
Method Summary | |
---|---|
java.util.List |
getActionsExecuted()
Gets the actions executed by the script. |
java.lang.Exception |
getException()
Gets the exception which was thrown during execution. |
boolean |
isActionFileInto(java.lang.String destination,
int n)
Is the n |
boolean |
isActionKeep(int n)
Is the n |
boolean |
isActionRedirect(java.lang.String address,
int n)
Is the n |
boolean |
isActionReject(java.lang.String message,
int n)
Is the n |
boolean |
isPass()
Is this a pass? |
java.lang.String |
toString()
Prints out details of results. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScriptChecker.Results(java.lang.Exception ex)
public ScriptChecker.Results(java.util.List actions)
Method Detail |
---|
public boolean isPass()
public java.lang.Exception getException()
Exception
or null if no exception was thrownpublic java.util.List getActionsExecuted()
List
of actions or null if the script failedpublic boolean isActionFileInto(java.lang.String destination, int n)
n'th action a FileInto
with given destination?
- Parameters:
destination
- String
destination for the file inton
- index to check
- Returns:
- true if the
n'th action is a FileInto
with given destination
public boolean isActionRedirect(java.lang.String address, int n)
n'th action a Redirect
with given address?
- Parameters:
address
- String
redirect addressn
- index to check
- Returns:
- true if the
n'th action is a Redirect
with given redirect address
public boolean isActionReject(java.lang.String message, int n)
n'th action a Reject
with given message?
- Parameters:
message
- String
rejection messagen
- index to check
- Returns:
- true if the
n'th action is a Reject
with given reject message
public boolean isActionKeep(int n)
n'th action a Keep
?
- Parameters:
n
- index to check
- Returns:
- true if the
n'th action is a Keep
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |