Package org.incendo.serverlib
Class Check
java.lang.Object
org.incendo.serverlib.Check
- Direct Known Subclasses:
ClassPresenceCheck,PackagePresenceCheck
A check is any operation that can be done to determine whether unsafe
software is being used.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String[]explain()Explains the reasoning behind the check.final voidPrints an explanation of what the check detected.abstract booleanChecks whether or not the check detects the presence of unsafe software.final CheckTypetype()Returns the type of this check.
-
Constructor Details
-
Check
Constructs a new check.- Parameters:
type- The type of the check.
-
-
Method Details
-
type
Returns the type of this check.- Returns:
- The type of the check.
-
shouldFlag
public abstract boolean shouldFlag()Checks whether or not the check detects the presence of unsafe software.- Returns:
- Whether or not the check detects the presence of the unsafe software.
-
explain
Explains the reasoning behind the check.- Returns:
- Lines of text explaining what the check detected.
-
printExplanation
public final void printExplanation()Prints an explanation of what the check detected.The message is printed directly to the error output stream, so that a filter cannot be added directly to the Log4J instance of the server to filter out these messages.
-