I want to implement a Java HTTP server locally, I mean the server computer would be in my control. I’m expecting not more than 20 clients to send requests to it.
I was wondering how to go about it:
- Should I use a J2EE servlet container, like Apache Tomcat?
- Could I use J2SE classes and just build it using them?
- Are there any existing alternatives?
What does your experience suggest?
There’s a simple HTTP server embedded in the Sun 1.6 JRE. It’s not JavaEE or servlet-compliant, it’s very lightweight, but it might be good enough for your requirements. No need to download any 3rd party stuff if this is all you need.
The javadocs, rather bizarrely, are out on their own, here.