HTTP Core Overview

WikiWebServer uses 13 classes to implement core web serving functionality:

Core overview

URL paths map directly to files on the filing system. Files are returned to the requester from the mapped location with the exception of class files implementing the HTTPResponder interface, these are executed to generate a dynamic response.

Examples

  • /templates/default/screen.css
    Returns the file named screen.css directly from the filing system at the specified location.
  • /page/example/HelloWorld.class
    Triggers the HelloWorld HTTPResponder to generate dynamic content.
  • /page/example/HelloWorld.java
    Returns the Java source code used to create the HelloWorld class.
  • /page/image/Pie.class?d=1,2,4,8
    Triggers the Pie HTTPResponder to generate content using the parameters, d=1,2,4,8.