Java开发的HTTP服务器:java-httpserver

jopen 11年前

java-httpserver是一个采用Java开发的HTTP服务器。

java-httpserver由三个主要组件组成:

  • HTTPServer, a really simple class that usually runs in the background, waiting for requests, and sending them off to the HTTPRequest class to get things done.

  • HTTPRequest, a class that takes in a Socket, reads from it, and splits apart the incoming data into its component parts (provided that the incoming Socket is following the HTTP protocol).

  • HTTPHandler, an abstract class whos subclasses are used to actually do things with the data. It also sends stuff back to the client.

项目主页:http://www.open-open.com/lib/view/home/1376746850194