ProgramixGenericLib v5.0.1

com.programix.http
Class SimpleHttpServer

java.lang.Object
  extended by com.programix.http.SimpleHttpServer

public class SimpleHttpServer
extends Object


Nested Class Summary
static class SimpleHttpServer.ConsoleOutput
           
static interface SimpleHttpServer.Output
           
 
Constructor Summary
SimpleHttpServer(File docRoot, int port, int numberOfWorkers, SimpleHttpServer.Output output)
           
 
Method Summary
 boolean isAlive()
           
static void main(String[] args)
          Used to run a simple HTTP server.
 void stopRequest()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleHttpServer

public SimpleHttpServer(File docRoot,
                        int port,
                        int numberOfWorkers,
                        SimpleHttpServer.Output output)
                 throws IOException
Throws:
IOException
Method Detail

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
 


ProgramixGenericLib v5.0.1

Copyright © 2001-2009 Programix Incorporated. All rights reserved. ProgramixGenericLib is free and is OSI Certified Open Source Software under the BSD license.