sunlabs.brazil.server |
|
Java Source File Name | Type | Comment |
ChainHandler.java | Class | Allows multiple handlers to be invoked sequentially for a single HTTP
request. |
Connection.java | Class | Internal "helper" class to manage http connections.
Create a thread that lives for the duration of the client socket and handles
multiple HTTP requests. |
FileHandler.java | Class | Standard handler for fetching static files.
This handler does URL to file conversion, file suffix to mime type
lookup, delivery of index files where providing directory
references, and redirection for missing slashes (/) at the end of
directory requests. |
Handler.java | Interface | The interface for writing HTTP handlers. |
Main.java | Class | Sample main program for starting an http server.
A new thread is started for each
Server ,
listening on a socket for HTTP connections.
As each connection is accepted, a
Request object is constructed,
and the registered
Handler is called.
The configuration properties required by the server
and the handler (or handlers), are gathered
from command line arguments and configuration files specified on the
command line. |
MultiHostHandler.java | Class | The MultiHostHandler allows the user to handle a set
of host names that are all running on the same IP address. |
Request.java | Class | Represents an HTTP transaction. |
Server.java | Class | Yet another HTTP/1.1 server.
This class is the core of a light weight Web Server. |