User:Thomasrudin/SJWS

SJWS is a small Java-based HTTP server. SJWS is free software licensed under the GPL 3.0. The Main focus is for embedded Java applications, where a Jetty- or Tomcat-Server is too complicated to deploy.

Supported Content
SJWS can host every readable resource and provide static and dynamic Web-Content. The dynamic Content is transparent to Java (mapped POJO's).

Content-Structure
The Content accessed with a HTTP-Client has the same Structure as the Java-Class-Tree. For Example: A Server running with the Path "/webserver/htdocs" will map all Classes and Resources to the Web-Root-Directory "/".

Dynamic Page
Dynamic Pages can be created programmatic in the Java Source-Code:

Embedded Dynamic Content
Dynamic Content can be indirectly accessed with the Java-HTML-Tag

JSON Support
JSON-Data Output is supported through Annotations:

Example
The Example shows how to instantiate, start and stop the Server: