com.programix.http
Class SimpleHttpServer
java.lang.Object
com.programix.http.SimpleHttpServer
public class SimpleHttpServer
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleHttpServer
public SimpleHttpServer(File docRoot,
int port,
int numberOfWorkers,
SimpleHttpServer.Output output)
throws IOException
- Throws:
IOException
stopRequest
public void stopRequest()
isAlive
public boolean isAlive()
main
public static void main(String[] args)
- Used to run a simple HTTP server.
Usage: java SimpleHttpServer <port> <threads> <root>
<port> - port to listen on for HTTP requests
<threads> - number of worker threads to create
<root> - base directory for HTML files
Copyright © 2001-2009
Programix Incorporated.
All rights reserved.
ProgramixGenericLib is free
and is
OSI Certified
Open Source Software under the BSD
license.