Class SimpleHttpServer

java.lang.Object
kilim.examples.SimpleHttpServer

public class SimpleHttpServer extends Object
A basic HTTP server that merely echoes the path and the query string supplied to it in a GET request Usage: Run java kilim.examples.HttpFileServer [base directory name] From a browser, try "http://localhost:7262/hello", "http://localhost:7262/buy?code=200invalid input: '&desc'=Rolls%20Royce">" SimpleHttpSession is an HTTPSession task, itself a thin wrapper over the socket connection. An instance of this task is launched for each new connection, and its execute method is called when the task is scheduled.

The HttpRequest and HttpResponse objects are wrappers over a bytebuffer, and unrelated to the socket. The request object is "filled in" by HttpSession.readRequest() and the response object is sent by HttpSession.sendResponse().

  • Constructor Details

    • SimpleHttpServer

      public SimpleHttpServer()
  • Method Details