Micro Embedded Extensible Java Web Server

I wrote a java web server that fits in a single file less than 500 lines long. Very easy to understand, very easy to extend, very easy to embed into your own project. You can use it however you like with no restrictions. Attribution would be nice, but not required.

View/download here.

SSL is a pain because unless you get a trusted certificate you get really scary messages that will chase most users away, and trusted certificates cost a lot of money. However if you have a certificate or have a situation where you don't mind the scary warnings, then you can enable SSL by doing this:

where you of course replace 'default' with the correct keystore location and keystore password