harbor run -t openthoughts/tasktrove-exp-rpt-stack-dockerfile-v2-stack-dockerfile-0312harbor download openthoughts/tasktrove-exp-rpt-stack-dockerfile-v2-stack-dockerfile-0312Task: Implement a minimal Java HTTP server (self-contained, no external deps)
Overview: Using the Java JDK installed in this environment, build a small, self-contained HTTP server that runs on port 8080 and exposes a few simple endpoints. The code should be placed under /app/ (as a single Java source file plus a readme with run instructions). No external libraries are allowed.
What you need to deliver in /app/:
What the program must do:
Start a lightweight HTTP server on port 8080 when run.
Print a startup message like: Server started on http://localhost:8080
Expose the following endpoints:
GET /
GET /health
GET /reverse?text=...
GET /echo?param1=...¶m2=...
Behavior and constraints:
How to run (example):
Acceptance criteria:
Deliverables:
Notes: