Package net.datenwerke.rs
Class EnvironmentValidator
HttpServlet
net.datenwerke.rs.EnvironmentValidator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
public class EnvironmentValidator
extends HttpServlet
Validates the environment on RS startup and handles the generation of an
error message if necessary.
As this has to work without any of the RS services, some functionality is
duplicated here.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Connectionstatic booleanstartup(boolean isEnterprise) Performs the ReportServer startup environment validation and database schema maintenance.
-
Constructor Details
-
EnvironmentValidator
public EnvironmentValidator()
-
-
Method Details
-
startup
public static boolean startup(boolean isEnterprise) Performs the ReportServer startup environment validation and database schema maintenance.- Parameters:
isEnterprise-trueif the Enterprise banner should be shown in logs,falsefor the Community banner.- Returns:
trueif an error was encountered during startup validation/migration, otherwisefalse.
-
openConnection
- Throws:
SQLException
-