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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Connection
     
    static boolean
    startup(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 - true if the Enterprise banner should be shown in logs, false for the Community banner.
      Returns:
      true if an error was encountered during startup validation/migration, otherwise false.
    • openConnection

      public static Connection openConnection() throws SQLException
      Throws:
      SQLException