Download site for SWS
SWS - Simple Web Server. A simple and fairly small web server with a slightly different approach / design than most other web servers.
"A web server in a jar*"
Feature list
- All HTTP, HTTPS, HTML, URL and TCP/IP use are wrapped in user friendly API (hidden strange quirks) thats validate and sanitize all inputs.
This results in validated and pretty printed HTML.
- Links to other web pages with parameters are compile time checked
- Update of data using a HTML form tag is done with compile time (and runtime) checks
- Highly responsive user experience (and low bandwidth use) due to very minimal use of JavaScript
- Fast web application development due to many build in validations, helpful error messages, standard debug options and (Eclipse) Hot code replace (HCR) support.
Sample web shop developed in about 20 hours.
- Includes 14 sample applications showing various features of the web server
This includes a simple web shop that contains all of the important features of a web shop
- Easy HTML generation code reuse by simple method (with parameters) calls
- Session, security (log in, rights and link requirement (RequiresLink)), cookie, file upload, client information / User-Agent and cache control support through user friendly API
- Configurable (Default and application level) session strategies.
Session cookie, URL parameter and combination (Runtime changeable without any loss) are build in.
- Sessions (including user log in) survives server restart (Optionally)
- Configurable (Default and application level) log in / security strategies
HTTP Basic access authentication, manually using a configurable log in page and no security are build in
- Build in security again CSRF (Cross-Site Request Forgery)
- Multi web applications, web directories, web pages, web resources, call wrappers (@Interceptors / @AroundInvoke) and scheduled tasks (Repeated and delayed) support
- Web applications, web directories, web pages, web resources and scheduled tasks can be dynamically added and removed at runtime
- Supports various types of web resources like video, audio, images and other
- Configurable (Default and application level) Access log, 404 Page not found log, error log / crash log and audit log (Opt-in) with log rolling support
- Can run as stand-alone or as in process (simple jar dependencies)
- Low disk IO per HTML page view (Zero can be achieved by configuration)
Notes
This web server is good for prototype development.
It is properly not good for production use.
It is fairly bad for development of pretty web pages / web applications with heavy / advanced use of CSS.
* Technically three jars
Installation
- Download this file
- Follow the instruction on the general installer page
For details on how to develop for the Simple Web Server (SWS) see the Getting started page.
Uninstallation
- Follow the instruction on the general uninstaller page
The newest version is: 1.0.4
Release notes
Development
My source code
Other dependencies
- Java Runtime Environment (JRE) version: 1.8
See the List of projects page for other projects.
Last Updated: 2026-09-12 19:14:00
Copyright Allan Rasmussen©