Short summary of project structure and runtime flow.
src/main/java/com/phive/validation/api- Backend servlet and request handling classes.
src/main/webapp- UI assets (
index.html,app.js,styles.css) and error pages (404.html,500.html).
- UI assets (
src/main/webapp/WEB-INFweb.xmlservlet mappings and error-page config.
src/main/resources- Logging configuration (
logback*.xml).
- Logging configuration (
.vscode- Shared VS Code tasks and launch configuration (committed).
.devcontainer- Dev container definition for local development environment.
scripts- Runtime entrypoint script used by container image.
docs- Project documentation.
ValidationService- Main API servlet exposing endpoints such as
/api,/list-rules,/validate.
- Main API servlet exposing endpoints such as
ValidationRequestHandler- Handles validation request parsing and validation execution flow.
ValidationModuleBootstrap- Bootstraps PHIVE validation modules/rules into registry.
RuleResponseBuilder- Builds rule list responses sent to clients.
IndexServlet- Serves root entry (
/) and blocks direct/index.htmlaccess with404.
- Serves root entry (
- Application starts in servlet container (Tomcat).
- Validation modules are initialized and registered.
- UI is served from
/. - Client calls API endpoints for rule listing and validation.
- Validation is executed with PHIVE rules and JSON response is returned.
- Container deploys app from
/opt/app. CONTEXT_PATHcontrols root/custom context path (default/).- Runtime script creates Tomcat context XML dynamically.
- Logging defaults:
LOG_FORMAT=jsonLOG_LEVEL=WARN