| java.lang.Object org.savarese.barehttp.Main
Main | final public class Main (Code) | | The BareHTTP server, a sample program that starts an
HTTPServer instance. The program expects two arguments: a port
number and a fully-qualified directory pathname specifying the
document root. It could easily be expanded to allow the
specification of a binding address and maximum number of
connections.
author: Daniel F. Savarese |
main | public static void main(String[] args) throws IOException(Code) | | Starts an
HTTPServer instance on a specified port
allowing
HTTPServer.DEFAULT_MAX_CONNECTIONS . No
provisions are made for terminating the program. The program
must be terminated by SIGKILL, Ctrl-C, or whatever OS-specific
mechanism exists to kill a running process.
Parameters: args - The program arguments: a port number and documentroot directory. throws: Exception - if the HTTPServer cannot be instantiatedor started. |
|
|